3.6 Polygons: geom_polygon()

  • Draws polygons, which are filled paths.
  • Useful when making maps: more in Chapter 6.
ggplot(df, aes(c, y)) +
  geom_polygon()