`summarise()` has grouped output by 'carrier'. You can override using the
`.groups` argument.
p1 <- heatmapdf |>ggplot(aes(x=factor(month), y=carrier, fill = arr_delay)) +geom_tile()+#Creating the geometry for a heat mapscale_fill_distiller(palette="Spectral") +theme_bw()+theme(axis.text.x =element_text(angle =0)) +xlab(label ="Month") +ylab(label ="Carrier") +labs(title ="Arrival Delay per carrier each month",subtitle ="Plot of carrier by month",caption ="Data source: Flights23(FAA Aircraft registry)")p1
The visualization is a heat map that tries to analyse and visualize the difference in arrival delay per carrier on each month. With this visualization we can see what carrier is the fastest to arrival having less delays and which months tend to have faster arrivals compared to the rest. On this we first filtered the original data to take out all N/as so that the data is not influenced by them. Then we did the ggplot2 and used the function geom_tile to create this geometry of the heat map with the tiles and used a graded scale of colors named spectral to create this more harmonious feeling to the colors. The visualization shows some difference in colors for example in July and June delay higher than the others especially for the F9 carrier. Another example is the carrier G4 that has a way smaller arrival delay witch I would recommend in case of getting a connection.