## Add a Directory HW3

Add a directory HW3 to your repository. This is where you will put the rest of your work for this assignment.

Be sure to commit and push your changes.

## 1. Life Expectancy Distribution by Continent

Using the subset of the data in the gapminder package for the years since 1990 create a set of density plots showing the life expectancy distributions within continents. Use ggplot2 with faceting to create your plots.

## 2. Boxplots of Life Expectancy by Continent

Again using the subset of the data in the gapminder package for the years since 1990 create a plot containing boxplots showing the distributions of life expectancy within continents.

## 3. Ridgeline Plots of Life Expectancy

For this problem use the full gapminder data frame. Create a ridge line plot showing the life expectancy densities for each year in the 12 years in the data set. Construct a second plot that shows the life expectancy densities for each continent within each of the 12 years. Comment on any intereasting features revealed by the plots.

## 4. Find a Better Visualization

This visualization was posted by ABC News in early 2017.

Explain why this visualization does not accurately represent the numbers. Read the numbers off the graph, create one or two alternative visualizations, and explain why they are more appropriate.

## Submit Your Work

Write up your work in an Rmarkdown document called hw3.Rmd in your HW3 folder and commit it to your local repository. You can commit the hw3.html as well but you do not need to.

Submit your work by pushing your local repository changes to your remote repository.

## Make Sure Your Work Is Reproducible

One of the goals of using git, GitHub, and Rmarkdown is for you to practice creating a framework that you can hand to someone else to reproduce your analysis. This means, among other things, that

• you should not make use of files from your computer outside of your repository;

• you should not rely on being able to change the working directory to your home directory;

• you should assume that your code might be run an a case-sensitive file system.

If you are working on Windows or a Mac a good test is to go to our Linux systems, check out your repository, and check that your hw3.Rmd file can be rendered successfully to produce hw3.html. You can do this using the RStudio menus or from the R command line with

rmarkdown::render("hw3.Rmd")

Make sure your working directory is HW3 for this.

You can also run this command in a shell in your HW3 directory:

Rscript -e 'rmarkdown::render("hw3.Rmd")'

Make sure you use the right combination of single and double quotes.