[R] overlay plots

Jens Nieschulze jniesch at gwdg.de
Thu Sep 6 16:29:34 CEST 2001


On Thu, 6 Sep 2001 Gerard.Keogh at cso.ie wrote:

> Hi all!
> 
> I new to R (I don't know anything about S+ either!)
> 
> I've a simple question:
> 
> How do I generate overlay plots in R?
> So far as I can see the plot(x, y) operator will only give me one graph and
> the plot(x ~ y + z) will give me 2 separate plots.
> Is there an easy way to overlay or am I missing the obvious?
between two calls to plot you should set
par(new=T)

specify the xlim=c(x1,x2) ylim=c(y1,y2) in each call to plot() to get
propper matching of the overlaid plots
> 
> 
> Any help welcome.
> 
> Gerard Keogh
> 
> The information in this email, and any attachments transmitted with it, are confidential 
> and are for the intended recipient only. If you receive this message in error, please 
> notify us via postmaster at cso.ie.
> 
> To see the latest figures from the CSO go to http://www.cso.ie
> -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
> 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
> _._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._
> 

***********************************************************************
Jens Nieschulze

Institute for Forest Biometrics &	Phone: ++49-551-39-12107
Applied Computer Science		Fax  : ++49-551-39-3465
Buesgenweg 4
37077 Goettingen		E-mail: jniesch at uni-forst.gwdg.de
GERMANY				http://www.uni-forst.gwdg.de/~jniesch

-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
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