2.14 Exercises

Simplify the following plot specifications:

ggplot(mpg) + 
  geom_point(aes(mpg$displ, mpg$hwy))

ggplot() + 
 geom_point(mapping = aes(y = hwy, x = cty), data = mpg) +
 geom_smooth(data = mpg, mapping = aes(cty, hwy))