Hi:
I need to plot two time series in the same plot and
they cover the same time range and have the same
frequency. With
RSiteSearch(multiple series plot)
i found this post by Gabor Grothendieck:
http://finzi.psych.upenn.edu/R/Rhelp02a/archive/42281.html
Exactly what i need except for one
On 24 July 2005 at 12:27, Ruben Roa wrote:
| Hi:
| I need to plot two time series in the same plot and
| they cover the same time range and have the same
| frequency. With
| RSiteSearch(multiple series plot)
| i found this post by Gabor Grothendieck:
|
plot.zoo can do that.
library(zoo)
set.seed(1)
xts - ts(rnorm(20)); xz - as.zoo(xts)
yts - ts(rnorm(20)); yz - as.zoo(yts)
plot(cbind(xz,yz), type = c(p,l), plot.type = single)
On 7/24/05, Ruben Roa [EMAIL PROTECTED] wrote:
Hi:
I need to plot two time series in the same plot and
they cover
On 24 July 2005 at 12:03, Dirk Eddelbuettel wrote:
| library(zoo)
|
| ## make up an date index
| index - Sys.Date() + seq(-99,0,by=1)
|
| ## init random number generato
| set.seed(42)
| ## and create two random series, with the date index
| X1 - zoo(cumsum(rnorm(100)), index)
| X2 -