ggplot2
Robert Schlegel
ggplot2
uses the grammar of graphicstidyverse
with intuitive functions and argumentsWe will need the following two packages for the examples in these slides.
ggplot()
+
geom
functions
geom_point()
adds pointsaes()
ggplot(data = penguins)
)aes()
aes()
aes()
geom_point(aes(colour = species))
aes()
aes()
are common when learning ggplot2
aes()
aes()