In the following code hunk, import your data.
The plot is made by using variables of airlines_x and origin_airport
Figure1: For my first figure, I am going to create a barplot that plots the ten airport with the average departure delay that have occured within the top airlines.
## `summarise()` has grouped output by 'AIRLINE_x'. You can override using the
## `.groups` argument.
here I used the also the airline_x with the variable departure_delay and taking it’s average
Figure2: For my second figure, I am going to create a scatter plot that shows the top ten Airlines by average delay in Departure.
in this part I used the day_of_week with departure_delay and arrival_delay
figure3: For the third figure, I will display a line plot for indicating which day of the week is has the average delay in Arrival and Departure.
## Warning: Using `size` aesthetic for lines was deprecated in ggplot2 3.4.0.
## ℹ Please use `linewidth` instead.
## This warning is displayed once every 8 hours.
## Call `lifecycle::last_lifecycle_warnings()` to see where this warning was
## generated.
figure4: For the 4th figure, I will display a histogram that shows the distribution of departure delays and its frequency.
figure5: For the 4th figure, I will display a histogram that shows the distribution of arrival delays and its frequency.
figure6: For the 6th figure, I have created a barplot showing the daily reasons.
figure7: For the th figure, I have created a line plot that shows differences of departure and arrival on most delay day of the week.
figure8: For the th figure, I have created a barplot and trying to show which day of the week has the most delay and by which airline.
## `summarise()` has grouped output by 'AIRLINE_x'. You can override using the
## `.groups` argument.