search for: xtspr

Displaying 1 result from an estimated 1 matches for "xtspr".

Did you mean: xtpr
2010 Aug 15
2
Adding colored background area to a time series plot
...on 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-02 NA 2008-01-03 0.000000000 2008-01-04 -0.024857950 2008-01-07 0.003218041 2008-01-08 -0.018522677 2008-01-09 0.013532064 So my dates along the x-axis are in the format "2008-01-02"...