Grouping the data by origin and summarizing flights by count
we are able to get a closer look to the airports in New york and the number of flights originating in each one in 2013.
by_origin <- flights_nona %>%group_by(origin,) %>%#grouping flights to establish the dep location.group_by(origin,) %>% #grouping flights to establish the dep location.summarise(count =n())
Creating a plot to showcase origin of various flights in the three airports
ggplot(data = by_origin, aes(x = origin, y = count, fill = origin)) +geom_col(alpha =0.7)+labs(x ="origin", y ="count", title ="Flights departing from various Airports in New york")
The plot illustrates the situation of the three airports in New York in 2013, specifically showcasing the count or number of flights that originated from each of them during that year. Notably, EWR emerges as the airport with the highest number of flights, suggesting a high level of activity and busyness compared to the other two airports. This substantial volume of flights may further imply that EWR covers a larger geographical area, making it a prominent hub for air travel in the region during the year 2013.