Lesson 8 of34
In Progress

Disambiguating Country Names (01_08)

Your Turn

Open the 01_08 project. Then, within the your-turn.R file:

Combine the rnaturalearthdata::countries110 dataset with gapminder_2007 and create a choropleth comparing country populations.

  1. Use countryname() to add a column to gapminder_2007 that contains the ISO3C country codes
  2. Join together the countries110 and gapminder_2007 dataset using your new column
  3. Use mapview() to visualise the lifeExp column
Learn More

The Gapminder dataset used in this video comes from Hans Rosling’s TED Talk and I highly recommend watching it. The animated GIF included in my slides was produced using the gganimate package using this script.

Have any questions? Put them below. David or Charlie Hadley will help you out!