flights_month |>ggplot(aes(month, origin, fill = n)) +geom_tile(color ="black") +scale_fill_gradient(low ="blue", high ="black") +labs(title ="New York Aiport's Monthly Flight Traffic", x ="Month", y ="Airport") +labs(fill ="Flight Count")
The heatmap above shows each New York airport in the dataset and its monthly traffic levels. Dark blue symbolizes lower traffic levels, while black indicates higher flight traffic levels. Straight away, we can see that LGA (LaGuardia) has the highest flight traffic year-round out of the three airports. Visualizing the data in this manner allows us to see which airports generate higher flight volumes throughout the year. The legend on the side provides a color guide for the heatmap, along with a numerical representation of the color gradient. One thing to highlight is that the months are shown as decimal values, allowing us to see flight volumes from different periods within each month.