Re: [R] Plotting multiple layers(maps) on same page

2010-08-03 Thread Wu Gong
Do you want to put two figures into one pdf page? pdf(file="testpdf.pdf") par(mfrow = c(2, 1)) plot((1:20)^2,1:20,type="b",lwd=4,col="blue") lines((1:20)^3,1:20,type="b",lwd=4,col="red") plot((1:20)^4,1:20,type="b",lwd=4,col="green") lines((1:20)^5,1:20,type="b",lwd=4,col="yellow") dev.off()

Re: [R] Plotting multiple layers(maps) on same page

2010-08-03 Thread LCOG1
I have done graphs but im trying to figure out how to map multiple shape files onto the same R plot and eventually export to pdf. Does this somehow apply and im missing the transfer? From: Wu Gong [via R] [mailto:ml-node+2312414-731348129-103...@n4.nabble.com] S

Re: [R] Plotting multiple layers(maps) on same page

2010-08-03 Thread Nikhil Kaza
you will have a better luck with R-sig-geo. Unfortunately I could not find an easy way for polygon overlays. plot(Tazshape) lines(ugbshape) if ugbshape was a polyline instead of a polygon. Nikhil Kaza Asst. Professor, City and Regional Planning University of North Carolina nikhil.l...@gmail.co

Re: [R] Plotting multiple layers(maps) on same page

2010-08-03 Thread Wu Gong
Is this you want? plot((1:20)^2,1:20,type="b",lwd=4,col="blue") lines((1:20)^3,1:20,type="b",lwd=4,col="red") - A R learner. -- View this message in context: http://r.789695.n4.nabble.com/Plotting-multiple-layers-maps-on-same-page-tp2312223p2312414.html Sent from the R help mailing list arc

[R] Plotting multiple layers(maps) on same page

2010-08-03 Thread LCOG1
Hey guys and gals, I searched through the forum and a bunch of R-mapping dedicated sites but have not found what i know is quite elementary process, mapping more than one layer on the same plot. I need to show some reference lines for the map to make sense. I know the below wont work for anyo