Session Ready
Exercise

Trelliscope faceting gapminder by country

With a subset of the gapminder data (just the two countries in Oceania), take the example of life expectancy vs. year faceted by country and continent and create a TrelliscopeJS display.

The gapminder data set is available for you in your workspace.

Instructions 1/2
undefined XP
  • 1
  • 2
  • Plot a line showing life expectancy (lifeExp) on the y-axis vs. year on the x-axis using the proper geom_().
  • Use facet_trelliscope() to facet on country and continent. Note that to facet on two variables, the syntax is ~ var1 + var2