Delay according to the departure times of the flights
ggplot(delay2, aes(deptime, delay, color = month)) +geom_point(aes(size = count), alpha =1/2) +ggtitle("Delay of flights according to the time of departure") +xlab("Departure time (hhmm)") +ylab("Delay time (minutes)") +geom_smooth() +scale_size_area()
`geom_smooth()` using method = 'loess' and formula = 'y ~ x'
Description
In this visualization, we can see the delay times according to the departure times. Notice that many flights between 10 am and 4 pm tend to have up to 30 minutes of delays. This is interesting consider that it is a very convenient time to fly because one does not have to wake up very early or stay up until late at night. I have also considered the first three months of the year to filter this data frame, so that we can visualize it better. I would also like to highlight that, while the period of time between 10 am and 4 pm have more delays, it also has a considerable concentration of flights that depart earlier than expected.