We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Firefox.

Exercise: Reconstruct Gapminder graph

Reconstruct the following graph which shows the relationship between GDP per capita and life expectancy for the year 2007:

  1. Use the ggplot() function and specify the gapminder_2007 dataset as input
  2. Add a geom_point layer to the plot and create a scatter plot showing the GDP per capita gdpPercap on the x-axis and the life expectancy lifeExp on the y-axis
  3. Make the color aesthetic of the points unique for each continent

Submit code to see output here.