Albert Y. Kim
Wednesday 2016/2/24
Recall: A statistical graphic is a mapping of variables in a
data set to aes()thetic attributies of geom_etric objects.All pages/chapters refer to the “A Layered Grammar of Graphics” paper.
More components (page 8). From hardest conceptually to easiest:
scales what axes and legendsstat statistical transformations of the data (p.11)position minor tweeks to the position of elementsfacet how to break up data into subsets and display broken down plotscoord coordinate system: cartesian, polar, etc.Understanding the defaults (hence Chapter 4 in the paper). In particular
geom_ has a defined set of aesthetics. Ex: Look at geom_bar on cheatsheet.geom_ has a default stat. Ex: geom_bar's default stat is count. If you want to use a different stat, like
identity, you have to set stat=identity.?geom_lineggplot2 book is under Non-Public section of class GitHub page, code from book
here. If you want to read it
(optional), I suggest reading