Skip to main content
Premium project

Visualizing Inequalities in Life Expectancy

Compare life expectancy across countries and genders with ggplot2.

Start Project
10 Tasks1,500 XP

Loved by learners at thousands of companies


Project Description

Do women live longer than men? How long? Does it happen everywhere? Is life expectancy increasing? Everywhere? Which is the country with the lowest life expectancy? Which is the one with the highest? In this project, you will answer all these questions by manipulating and visualizing United Nations life expectancy data using ggplot2.

The dataset can be found here and contains the average life expectancies of men and women by country (in years). It covers four periods: 1985-1990, 1990-1995, 1995-2000, and 2000-2005.

Project Tasks

  1. 1
    United Nations life expectancy data
  2. 2
    Life expectancy of men vs. women by country
  3. 3
    Visualize I
  4. 4
    Reference lines I
  5. 5
    Plot titles and axis labels
  6. 6
    Highlighting remarkable countries I
  7. 7
    How has life expectancy by gender evolved?
  8. 8
    Visualize II
  9. 9
    Reference lines II
  10. 10
    Highlighting remarkable countries II

Technologies

R R

Topics

Data ManipulationData Visualization
Antonio Sánchez Chinchón HeadshotAntonio Sánchez Chinchón

Data Scientist at Telefónica

Antonio Sánchez Chinchón is a mathematician and works as a data scientist at Telefónica, where he tries hard to extract value from data every day. He is the creator of Fronkonstin, an unclassifiable blog of mathematical experiments, data science, data art, and R programming. He plays the guitar in a rock band. You can follow him on Twitter @aschinchon.
See More

What do other learners have to say?