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

Wu Gong wg2f at mtmail.mtsu.edu
Wed Aug 4 02:09:55 CEST 2010


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()

-----
A R learner.
-- 
View this message in context: http://r.789695.n4.nabble.com/Plotting-multiple-layers-maps-on-same-page-tp2312223p2312776.html
Sent from the R help mailing list archive at Nabble.com.



More information about the R-help mailing list