9.8 10.2 Exercises

9.8.1 10.2.1.1

Create a scatterplot of hwy vs. displ where the points are pink filled in triangles.

ggplot(mpg, aes(x = displ, y = hwy)) + 
  geom_point(color = "pink", shape= 17)

9.8.2 10.2.1.4

ggplot(mpg, aes(x = displ, y = hwy, color = displ < 5)) +
geom_point()