Faceting & Composing Plots

You now know how to build a single, well-labelled plot with the right geometry for your data. In this final tutorial, you’ll learn how to scale that up: splitting one plot into many small panels, combining several unrelated plots into one figure, and saving your work to a file.

You will cover:

  1. Faceting: splitting a plot into subplots by one or two categorical variables.
  2. Saving plots: writing a ggplot2 figure to disk as PDF, PNG, or JPEG.
  3. Composing plots: arranging several independent plots into a single figure.
Back to top