1. Learn
  2. /
  3. Courses
  4. /
  5. Introduction to the Tidyverse

Exercise

Comparing population and life expectancy

In this exercise, you'll use ggplot2 to create a scatter plot from scratch, to compare each country's population with its life expectancy in the year 1952.

Instructions

100 XP
  • Create a scatter plot of gapminder_1952 with population (pop) is on the x-axis and life expectancy (lifeExp) on the y-axis.