September 2018
Beginner
206 pages
4h 27m
English
Let's now create scatterplots using geom_point() and geom_().
ggplot(msleep, aes(bodywt, sleep_total)) + geom_point()
ggplot(msleep, aes(bodywt, sleep_total)) + geom_jitter(width = 50)
Output: The following is the output we get when we execute the code mentioned in Step 1:
The following is the output we get when we execute the code mentioned in Step 2