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!
Bu egzersiz
Introduction to Data Visualization with ggplot2
kursunun bir parçasıdırUygulamalı interaktif egzersiz
Bu örnek kodu tamamlayarak bu egzersizi bitirin.
# Edit to add a color aesthetic mapped to disp
ggplot(mtcars, aes(wt, mpg)) +
geom_point()