`summarise()` has grouped output by 'month'. You can override using the
`.groups` argument.
Plotting
ggalluv <- del_flights |>ggplot(aes(x = month, y = avg_delay, alluvium = origin)) +theme_bw() +geom_alluvium(aes(fill = origin), color ="white",width = .1, alpha = .8,decreasing =FALSE) +scale_fill_brewer(palette ="Set1") +scale_x_continuous(lim =c(1, 12)) +labs(title ="NYC Airports Average Departure Delay of at Least an Hour \n (Year of 2013 for United Air Lines)",x ="Month",y ="Average Departure Delay (min)", fill ="Origin",caption ="Source: NYC flights 13")ggalluv
Essay
This alluvial explores the trends in departure delays for planes operated by United Air Lines over the course of the year for NYC airports in 2013. Specifically it looks at average departure delays that are at least an hour (AVGDELHR+). The plot shows that LAG begins the year with the highest AVGDELHR+ which continues until October where interestingly enough it dips down to least AVGDELHR+, after which it goes back to highest AVGDELHR+. JFK airport for 7 months has the second most AVGDELHR+ of which peaks in October at rank 1. While generally EWR had the lowest AVGDELHR+ for a majority of the year. Overall, little difference between the widths of the lines indicate the differences in AVGDELHR+ between each airport aren’t too significant. This makes sense considering how the graph fluctuates with the similar widths especially towards the end of the year.