Starting from:

$34.99

CSCI297B Exercise 12 Solution

For this project, use the tidyverse library, which includes the mpg dataset.
For this project, you will turn in a single R markdown file, called exercise10.Rmd
1. What is the problem with the following plot? How could you improve it?
ggplot(mpg, aes(x = cty, y = hwy)) + geom_point()
2. What, if anything, is the difference between the two plots? Why?
ggplot(mpg, aes(x = displ, y = hwy)) + geom_point()
ggplot(mpg, aes(x = displ, y = hwy)) + geom_point(position = "identity")
3. What parameters to geom_jitter() control the amount of jittering?
4. Compare and contrast geom_jitter() with geom_count().
5. What’s the default position adjustment for geom_boxplot()? Create a visualization of the mpg dataset that demonstrates it.
1

More products