[R] two plots in one frame

Ko-Kang Kevin Wang ko-kang at xtra.co.nz
Fri Nov 16 01:07:47 CET 2001


You can try something like:
  x <- rnorm(100)
  y <- rnorm(100)
  plot(x)
  points(y, col = "Red")

Cheers,

Ko-Kang Wang


> 
> From: Justin Fay <jcfay at lbl.gov>
> Date: 2001/11/16 Fri AM 09:49:29 GMT+12:00
> To: r-help at stat.math.ethz.ch
> Subject: [R] two plots in one frame
> 
> I would like to plot two different scatterplots in the same frame (say with 
> different colors) but everytime plot is called a new frame is created.  Is 
> there a way around this?
> -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
> 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
> _._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._
> 

-----------------------------------
Ko-Kang Kevin Wang
Statistical Analysis Division Leader
Software Developers' Klub (SDK)
University of Auckland
New Zealand


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