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!
This exercise is part of the course
Introduction to Data Visualization with ggplot2
Hands-on interactive exercise
Have a go at this exercise by completing this sample code.
# Edit to add a color aesthetic mapped to disp
ggplot(mtcars, aes(wt, mpg)) +
geom_point()