R-beta: More Time series in the same plot
Peter Dalgaard BSA
p.dalgaard at kubism.ku.dk
Thu Oct 23 23:10:06 CEST 1997
Andrea Rossetti <rossetti at stat.unipg.it> writes:
>
> I can plot a time series with:
>
> gnp <- ts(cumsum(1+round(rnorm(100), 2)), start=c(1954,7), frequency=12)
> plot(gnp)
>
> But I want to plot more time series in the same plot.
>
> How can I do it?
>
gnp <- ts(cumsum(1+round(rnorm(100), 2)), start=c(1954,7), frequency=12)
plot(gnp)
gnp <- ts(cumsum(1+round(rnorm(100), 2)), start=c(1954,7), frequency=12)
par(new=T) #<<---
plot(gnp)
--
O__ ---- Peter Dalgaard Blegdamsvej 3
c/ /'_ --- Dept. of Biostatistics 2200 Cph. N
(*) \(*) -- University of Copenhagen Denmark Ph: (+45) 35327918
~~~~~~~~~~ - (p.dalgaard at biostat.ku.dk) FAX: (+45) 35327907
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
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