1. Learn
  2. /
  3. Courses
  4. /
  5. Visualizing Big Data with Trelliscope in R

Exercise

Customizing the gapminder display

Let's put some of these features to the test with our by-country life expectancy trajectory plot. Note that we are again working with just the two countries from Oceania.

Instructions

100 XP
  • Add a geom_smooth() layer to add a fitted linear model using the "lm" method.
  • Set the scales to be "sliced".
  • With the linear model layer added to the plot, specify that automatic cognostics should be computed for this display and explore what new cognostics this layer adds to the display.