[R] simple ts plot question
Francisco Cribari Neto
cribari at de.ufpe.br
Fri Mar 10 13:09:58 CET 2000
Hi, I have a simple question regarding plots of time series. I
have two time series, say ts1.ts and ts2.ts. They are both monthly.
The first one ranges from 1944:2 through 1999:7 whereas the second
one ranges from 1974:1 through 1993:6. How can I plot both of them
in the same plot (the shorther series would be only displayed in a
section of the x axis since it is shorter).
My naive try was
plot(c(ts1.ts, ts2.ts), xlab="time", ylab="")
but it did not work. Note: I have defined the two series as
ts1.ts <- ts(series1, start=c(1944,2), frequency=12) # 234 obs.
ts2.ts <- ts(series2, start=c(1974,1), frequency=12) # 666 obs.
Thanks a lot in advance. Best, Francisco.
PS: I am using R for Windows and R for (Red Hat) Linux version
1.0.0.
Francisco Cribari-Neto voice: +55-81-2718420
Departamento de Estatistica fax: +55-81-2718422
Universidade Federal de Pernambuco e-mail: cribari at de.ufpe.br
Recife/PE, 50740-540, Brazil web: www.de.ufpe.br/~cribari/
If a train station is where a train stops, then what is a workstation?
-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info", "help", or "[un]subscribe"
(in the "body", not the subject !) To: r-help-request at stat.math.ethz.ch
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._
More information about the R-help
mailing list