Section 39 Multiple Plot Layout using ggplot2: facet_grid
The function facet_grid forms a matrix of panels defined by row and column facetting variables. It is most useful when you have two discrete variables, and all combinations of the variables exist in the data.