If you need a review of our theoretical exploration of the grammar of graphics and its use with ggplot2, see The ggplot2 grammar guide.