[R] subplot strange behavoir
emorway
emorway at usgs.gov
Wed Oct 5 23:35:23 CEST 2011
I tried this trick, and clearly things are not going in the right direction.
It seems 'layout' is at the root of my frustration, so I can make two plots
and marge them in adobe illustrator (or something similar).
png("c:/temp/lookat.png",res=120,height=600,width=1200)
layout(matrix(c(1,2),2,2,byrow=TRUE),c(1.5,2.5),respect=TRUE)
plot(seq(1:10),seq(1:10),type="l",las=1,col="blue")
plot(x,y,type="l",las=1,ylim=c(0,12))
subplot(edm.sub(x[seq(1:5)],y[seq(1:5)]),x=4,y=9,size=c(1,1.5))
par(new=T)
plot(x,y,las=1,ylim=c(0,12),type="n",ann=F,las=1,col="blue")
subplot(edm.sub(x[seq(15,20,by=1)],y[seq(15,20,by=1)]),x=17,y=9,size=c(1,1.5))
dev.off()
http://r.789695.n4.nabble.com/file/n3876285/lookat.png
--
View this message in context: http://r.789695.n4.nabble.com/subplot-strange-behavoir-tp3875917p3876285.html
Sent from the R help mailing list archive at Nabble.com.
More information about the R-help
mailing list