I am trying to visualize the correlation between the scheduled arrival time and the actual arrival time of data in the flights package.
Doing this I generated the plot as shown here:
Code:
library(nycflights13)
library(ggplot2)
attach(flights)
ggplot(flights, aes(x = sched_arr_time, y = arr_time)) +
geom_point(size = 2, color='darkblue', alpha = 0.2) +
geom_smooth(method="auto", se=TRUE, fullrange=FALSE, level=0.95, color='red')
I would like to color all data that is effected by the clock passing 00.00 orange.
How would I do this?
