Home » Boxplot

Boxplot

 

#Loading the data

data(iris)

Boxplot

#boxplot of iris sepal length by species
boxplot(iris$Sepal.Length, main = "Iris sepal length", col = "lightgrey")

unnamed-chunk-21

#boxplot of iris sepal length by species
boxplot(iris$Sepal.Length  ~ iris$Species, 
        col =c("pink","gray","lightblue"), main="Boxplot Iris sepal lenght")

unnamed-chunk-22




	

Post a Comment