2.3 Aesthetic Layer

  • This involves linking variables in the data to graphical properties of the plot (e.g.,x,y,color,shape,size).

# specify dataset and mapping

library(ggplot2)

ggplot(data = CPS85,
       mapping = aes(x = exper, y = wage))