Displaying 1 result from an estimated 1 matches for "msg73948".
Did you mean:
msg00948
2010 Aug 15
2
Adding colored background area to a time series plot
Hi,
I am trying to add a rectangular colored background area to a plot of a time series of relative price changes. I believe that what I'm trying to do is very similar to the question and example given here:
http://www.mail-archive.com/r-help at stat.math.ethz.ch/msg73948.html
http://www.mayin.org/ajayshah/KB/R/html/g5.html
My problem/difference is that my time series looks like so:
> library(quantmod)
> getSymbols("^GSPC", from="2008-01-01")
> xtsPR <- diff(log(Ad(GSPC)))
> head(xtsPR)
GSPC.Adjusted
2008-01-...