Plot1 <- dep_mean|>filter(dep_delay >500)|>ggplot(aes(x= carrier, y = dep_delay, fill = mean_delay))+geom_boxplot() +labs(title ="Boxplot Graph of Departure Delays Exceeding 500 Minutes by Carrier",caption ="source: FAA Aircraft Registry",x ="Carrier", y ="Departure Delay(minutes)") +theme(axis.text.x =element_text(angle =90))Plot1
this is my essay
I analyze departure delay by carriers using their average delay. First, I filter the departure delay is greater than 500 minutes. And then I grouped by carrier and found mean for each. After that I came up with a boxplot to see the average delay of each air plan. I use carrier in the x -axis and departure delay in the y-axis. When we look the graph, we can clearly see that there is an outlier for American Airline, JetBlue Airways, and SkyWest Airline. For Allegiant Air and Southwest Airline, we can only see one horizontal line, which means the airline departing on time with zero delays. That is why boxplot shows flat lines because there is no variation in the data. Box plot that has lighter blue color represents the highest average delay and the darker the color shows lowest mean delay. We can conclude that Frontier Airlines has the highest average delay and Republic Airlines has the lowest average delay.