Session Ready
Exercise

Mapping data columns to aesthetics

Let's dive a little deeper into the three main topics in this course: The data, aesthetics, and geom layers. We'll get to making pretty plots in the last chapter with the themes layer.

We'll continue working on the 32 cars in the mtcars data frame.

Consider how the examples and concepts we discuss throughout these courses apply to your own data-sets!

Instructions 1/2
undefined XP
  • 1

    Add a color aesthetic mapped to the displacement of the car engine: inside aes(), add a color argument equal to disp.

    • 2

      This time, map disp to the size aesthetic.