[R] how superpose two graphics ?

Bill Simpson wsi at gcal.ac.uk
Tue Mar 27 12:06:02 CEST 2001


use plot() for the x1,y1 points
use points() for x2,y2 points

x1<-seq(1:10)
x2<-seq(2:12)
y1<-x1+rnorm(length(x1))
y2<-.1*x2+rnorm(length(x2))
plot(x1,y1,xlim=range(x1,x2), ylim=range(y1,y2), pch=1)
points(x2,y2,pch=2)

Bill

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