Chapter 18 Programming with ggplot2

Learning objectives:

  • Programming single and multiple components
  • Use components, annotation, and additional arguments in a plot
  • Functional programming

What are the components of a plot?

  • data.frame
  • aes()
  • Scales
  • Coords systems
  • Theme components