Slide 12
Slide 12 text
ggplot2: using the Grammar of
Graphics
ggplot2:
Builds plots out of simpler components:
● data
● aesthetics: e.g. coordinates, colour, size of points
● geoms: the type of plot layer: line, point, etc.
● facets: organizing graphs into subplots
● transforms: logs, square roots, continuous to discrete
etc.
● stats: functions of the raw data
● coordinates: e.g. Euclidean, map coords, polar
● themes: font size, grids, etc.