i am trying to combine a geom_bar and geom_line however, my geom_line does not seem to be showing. It ends up with this error: geom_path: Each group consists of only one observation. Do you need to adjust the group aesthetic?
Here is my code:
delay.df %>% ggplot() + geom_bar(aes(x = AIRLINE, y = TOTAL_DELAYS), stat = "identity") + geom_line(aes(x = AIRLINE, y = DELAY_PERCENTAGE), size = 1, colour = "blue")
It ends up only showing the geom_bar. I have checked and both the TOTAL_DELAYS and DELAY_PERCENTAGE are numericals.