I'm plotting a time series for three different years 2013, 2014, 2015.
require(quantmod)
require(ggplot2)
getSymbols("AAPL", from='2013-01-1')
aapl.df = data.frame(date=time(AAPL), coredata(AAPL.Close))
ggplot(data=aapl.df, aes(x=date, y=AAPL.Close, group=1))+geom_line()
How do I plot the closing price in ggplot such that each year has different background color tiles on the plot?