Starting from:

$24.99

CSCI297B Exercise 11 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 does geom_col() do? How is it different from geom_bar()?
2. What variables does stat_smooth() compute? What arguments control its behavior?
3. In our proportion bar chart, we need to set group = 1. Why? In other words, what is the problem with these two graphs?
ggplot(diamonds, aes(x = cut, y = after_stat(prop))) +
geom_bar()
ggplot(diamonds, aes(x = cut, fill = color, y = after_stat(prop))) +
geom_bar()
1

More products