Does anyone know how to use geom_vline() in ggplot with time series data?
I know if the x axis has dates I can use as.numeric(as.Date()) to plot the vertical line as shown below, but how can I plot the vertical line if my x axis is UTC time? e.g. a vertical line at 21:30?
geom_vline(xintercept = as.numeric(as.Date("2019-10-03")))
# would plot a vertical line at October 3rd 2019