Adding dates to X-axis and inputting a vertical line

Hi, I am trying to put vertical lines at specific points on my graphs. I am using ggplot2. I have looked around on the internet and nothing is working.

Climate Change News Indicators (standardized and deseasonalized)
     
# collect data into dataframes for autoplot
News           = cbind(CHNEG ,Google , WSJ )
NewsG_WSJ      = cbind(Google ,WSJ )
NewsG_CHNEG    = cbind(Google ,CHNEG )
NewsCHNEG_WSJ  = cbind(CHNEG ,WSJ )
NewsAll        = cbind(Google , WSJ ,CHNEG  )

# plot
autoplot(News)  #plot data series in individual panels 
autoplot(News          , facets = FALSE)   #plot together
autoplot(NewsCHNEG_WSJ , facets = FALSE)   #plot together
autoplot(NewsG_WSJ     , facets = FALSE)   #plot together
autoplot(NewsG_CHNEG   , facets = FALSE)   #plot together

Please politely let me know if you require other information in order to help provide a solution.

See the FAQ: How to do a minimal reproducible example reprex for beginners.

This topic was automatically closed 21 days after the last reply. New replies are no longer allowed.

If you have a query related to it or one of the replies, start a new topic and refer back with a link.