Session Ready
Exercise

Going all out

In this exercise, you will gradually add more aesthetics layers to the plot. You're still working with the mtcars dataset, but this time you're using more features of the cars. Each of the columns is described on the mtcars help page. Columns fcyl and fam have been added (as before) as categorical versions of cyl and am respectively.

Notice that adding more aesthetic mappings to your plot is not always a good idea! You may just increase complexity and decrease readability.

Instructions 1/3
undefined XP
  • 1
    • Use mtcars to draw a plot of qsec vs. mpg, colored by fcyl.
    • Add a point layer.
    • 2

      Add another aesthetic: map fam onto shape.

    • 3

      Add another two aesthetics: map hp divided by wt onto size.