Skip to content
Prev 30441 / 398513 Next

How to plot several graphs in a single 2-D figure?

"Feng Zhang" <f0z6305 at labs.tamu.edu> writes:
There are several. I assume data1 and data2 are data frames with an x
and a y column? Then you might do

plot(rbind(data1,data2),type="n")
points(data1,pch=1) 
points(data2,pch=2)

Another way is to do what you already did, but add explicit xlim and
ylim arguments.