[R] two plots in one frame
kjetil halvorsen
kjetilh at umsanet.edu.bo
Thu Nov 15 23:25:30 CET 2001
First scatterplot:
plot(x,y,col="blue")
second:
points(z,t, col="red")
Note that the coordinate system fixed by the first call to plot
cannot be changed, so if tthe (z,t) points fall outside, it is necessary
to include xlim=c(,) and ylim=c(,) as arguments to the first call.
Kjetil Halvorsen.
Justin Fay wrote:
>
> 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
> _._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._
-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
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