Exercise: Reconstruct Gapminder graph

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

Enlarge
  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
Output

Submit code to see output here.

Specify additional aesthetics for points