1. Learn
  2. /
  3. Courses
  4. /
  5. Case Study: Exploratory Data Analysis in R

Exercise

Faceting the time series

Now you'll take a look at six countries. While in the previous exercise you used color to represent distinct countries, this gets a little too crowded with six.

Instead, you will facet, giving each country its own sub-plot. To do so, you add a facet_wrap() step after all of your layers.

Instructions

100 XP
  • Create a filtered version that contains these six countries called filtered_6_countries.
  • Use the filtered dataset (containing summarized data for six countries) to create a plot with one facet for each country.