# A tibble: 435,352 × 4
dep_time sched_dep_time dep_delay carrier
<int> <int> <dbl> <chr>
1 1 2038 203 UA
2 18 2300 78 DL
3 31 2344 47 B6
4 33 2140 173 B6
5 36 2048 228 UA
6 503 500 3 AA
7 520 510 10 B6
8 524 530 -6 AA
9 537 520 17 UA
10 547 545 2 NK
# ℹ 435,342 more rows
p1 <-ggplot(tab1, aes(x = sched_dep_time, y = dep_delay, color = carrier)) +labs(title ="Departure Delay by Carrier",caption ="NYC Flights Dataset 2023") +xlab("Scheduled Departure Time") +ylab ("Departure Delay") +theme_minimal(base_size =12) p1 +geom_point()
Warning: Removed 10738 rows containing missing values or values outside the scale range
(`geom_point()`).
Paragraph
I have created a scatter plot of the flight departure delay. It can be seen in the graph that the x-axis is the scheduled departure time and the y-axis is the departure delay. The higher on the y-axis that the dot on the graph is, the greater the departure delay. The airline carriers are distinguished by color on the graph. It can be observed on the graph that the airline carrier that appears to have the longest departure delays is the airline carrier AA. No particular correlation pertaining to the scheduled departure time and departure delay can be seen.