Skip to content
Prev 10406 / 398513 Next

how superpose two graphics ?

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