ggplot2
Tutorial exercises
-- https://github.com/GladB/ggplot_tutorial/blob/master/to_present.Rmd

ggplot(iris, aes(Sepal.Length, Petal.Length))+
geom_point(aes(color=Sepal.Width))+
geom_smooth(method="lm")+
theme_bw()
ggplot(iris, aes(x=Species, y=Petal.Length, color=Species, fill=Species)) +
geom_boxplot(width = 0.6, alpha=0.5)+
geom_jitter(width=0.1, height=0)+
geom_violin(alpha = 0.5, fill="grey") 




Last updated