ggplot2 Version of Figures in “Lattice: Multivariate Data Visualization with R” (Part 1)

Originally posted on Learning R:
The data visualization package lattice is part of the base R distribution, and like ggplot2 is built on Grid graphics engine. Deepayan Sarkar’s (the developer of lattice) book Lattice: Multivariate Data Visualization with R gives a detailed overview of how the package works. All the figures and code used to…