Add a Directory HW7

Add a directory HW7 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. Cancellations and Destination Location

This problem uses the data in the nycflights13 package.

The airports table contains longitude and latitude for each airport. This can be used to construct a map. A map of the locations of a few airports can be constructed using

ap <- filter(airports, faa %in% c("ATL", "DEN", "JFK", "MSP", "ORD", "SFO"))
ggplot(ap, aes(x = lon, y = lat)) + 
    borders("state") + geom_point(size = 3) + coord_map()

2. Wind Speed, Time of Day, and Departure Delays

Examine the relationship between departure delays, wind speed, and hour of departure for the nycflights13 data:

Submit Your Work

Write up your work in an Rmarkdown document called hw7.Rmd in your HW7 folder, and commit it to your local repository. You can commit the hw7.html file 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

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 hw7.Rmd file can be rendered successfully to produce hw7.html. You can do this using the RStudio menus or from the R command line with


Make sure your working directory is HW7 for this.

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

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

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