Exercise: Plot life expectancy of Brazil
Create your first line graph showing the life expectancy of people from Brazil over time.
- Use the
ggplot()function and specify the
gapminder_brazildataset as input
- Add a
geom_line()layer to the plot
- Map the
yearto the x-axis and the life expectancy
lifeExpto the y-axis with the
Submit code to see output here.