Re: R-beta: More Time series in the same plot

Peter Dalgaard BSA (p.dalgaard@kubism.ku.dk)
23 Oct 1997 23:10:06 +0200


To: Andrea Rossetti <rossetti@stat.unipg.it>
Subject: Re: R-beta: More Time series in the same plot
From: Peter Dalgaard BSA <p.dalgaard@kubism.ku.dk>
Date: 23 Oct 1997 23:10:06 +0200
In-Reply-To: Andrea Rossetti's message of Tue, 21 Oct 1997 22:19:40 +0200

Andrea Rossetti <rossetti@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@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@stat.math.ethz.ch
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=