Get startedGet started for free

Exercise 6. Life expectancy in Cambodia

Cambodia was also involved in this conflict and, after the war, Pol Pot and his communist Khmer Rouge took control and ruled Cambodia from 1975 to 1979. He is considered one of the most brutal dictators in history. Do the data support this claim?

This exercise is part of the course

Data Science Visualization - Module 2

View Course

Exercise instructions

Use a single line of code to create a time series plot from 1960 to 2010 of life expectancy vs year for Cambodia.

Hands-on interactive exercise

Have a go at this exercise by completing this sample code.

library(dplyr)
library(ggplot2)
library(dslabs)
data(gapminder)
Edit and Run Code