Session Ready
Exercise

Exercise 2. Life expectancy vs fertility - part 2 - coloring your plot

Note that there is quite a bit of variability in life expectancy and fertility with some African countries having very high life expectancies. There also appear to be three clusters in the plot.

Instructions
100 XP

Remake the plot from the previous exercises but this time use color to distinguish the different regions of Africa to see if this explains the clusters. Remember that you can explore the gapminder data to see how the regions of Africa are labeled in the data frame!

Use color rather than col inside your ggplot call - while these two forms are equivalent in R, the grader specifically looks for color.