python (65.2k questions)
javascript (44.3k questions)
reactjs (22.7k questions)
java (20.8k questions)
c# (17.4k questions)
html (16.3k questions)
r (13.7k questions)
android (13k questions)
Adjust color of geom_vline in ggplot based on group
So I am creating density plot for Sepal.Length for two species of the iris-dataset. The graph looks like this:
As you can see, I added two measures of central tendency to the graph (Median and Mean)....
Maximilian
Votes: 0
Answers: 1
Matplotlib is not showing my scatterplot?
When I use plt.show the plot only shows the PCA lines and not a scatterplot of the first 2 iris features
import numpy as np
import matplotlib.pylab as plt
from sklearn import decomposition
x = np.loa...
Ben Boksanski
Votes: 0
Answers: 1
Running analysis on for loop x times
I have the following code that selects 4 rows of iris 1000x, and takes the mean of each 4 row sample:
library(dplyr)
iris<- iris
storage<- list()
counter<- 0
for (i in 1:1000) {
# sampl...
hugh_man
Votes: 0
Answers: 2