The Question–Cancelled Flights

Use the nycflights13 package and the flights data frame to answer the following questions: What month had the highest proportion of cancelled flights? What month had the lowest? Interpret any seasonal patterns.

Note: You may consider a flight to be cancelled if its departure time is NA.

How to make the breaks

In class, Dr. White talked about the scale_x_continuous function, which will create the breaks necessary to display the months correctly should you wish to pretty up your graph. I will show you the breaks to include to get it to display. The following line of code is something you should include in your ggplot code:

scale_x_continuous(breaks = round(seq(min(1), max(12), by=1))) 

Hope this helps if you want to use it!