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](http://data.un.org/Data.aspx?d=GenderStat&f=inID:37&c=1,2,3,4,5,6&s=crEngName:asc,sgvEngName:asc,timeEngName:desc&v=1) 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 VisualizationImporting & Cleaning Data
Antonio Sánchez Chinchón Headshot

Antonio Sánchez Chinchón

Data Scientist at Telefónica
Antonio Sánchez Chinchón is mathematician and works as data scientist at Telefónica, where he tries hard to extract value from data every day. He is the creator of [Fronkonstin](www.fronkonstin.com), an unclassifiable blog of mathematical experiments, data science, data art and R programming. He plays the banjo in a rock band. You can follow him on Twitter [@aschinchon](https://twitter.com/aschinchon).
See More

What do other learners have to say?

I've used other sites—Coursera, Udacity, things like that—but DataCamp's been the one that I've stuck with.

Devon Edwards Joseph
Lloyds Banking Group

DataCamp is the top resource I recommend for learning data science.

Louis Maiden
Harvard Business School

DataCamp is by far my favorite website to learn from.

Ronald Bowers
Decision Science Analytics, USAA