Appropriate mappings
Incorrect aesthetic mapping causes confusion or misleads the audience.
Typically, the dependent variable is mapped onto the the y-axis and the independent variable is mapped onto the x-axis.
In the ToothGrowth data set, we have three variables:
| Variable | Description |
|---|---|
len |
Tooth length |
supp |
Supplement type (VC or OJ) |
dose |
Dose in milligrams/day |
From the six possible ways to map three variables, one solution is shown in the viewer. Which of the options below leads to the plot shown?
Bu egzersiz
Introduction to Data Visualization with ggplot2
kursunun bir parçasıdırUygulamalı interaktif egzersiz
İnteraktif egzersizlerimizden biriyle teoriyi pratiğe dökün
Egzersizi başlat