[R] y-axis slightly cut-off after printing plots to tiff
alfredo
alfredotello at gmail.com
Wed Feb 16 19:38:17 CET 2011
Hi Folks,
I'm hoping someone could help me a bit. I have plotted the following:
###########################################
tiff("plot7.tiff",units="cm",width=15,height=36,res=700)
layout(matrix(c(1,2,3,4,5,6),3,1),widths=lcm(c(15)),heights=lcm(c(12,12,12)),respect=TRUE)
plot.t1<-plot(data.dist,flot1.bray.hell,xlab="",ylab="Bray-Curtis
dissimilarity
index",cex.lab=2,cex.axis=1.7,pch=20,cex=2,col="darkgray",font=2,font.lab=2);text(0,0.34,"a",font=2,cex=1.7);text(1.5,0.07,"y=0.041x
+
0.113",cex=1.7,font=2);text(1.3,0.05,"R2=0.1785",cex=1.7,font=2);text(1.75,0.05,"p<0.001",cex=1.7,font=2);abline(0.113737,0.041476,lwd=2)
plot.t2<-plot(data.dist,flot2.bray.hell,xlab="",ylab="Bray-Curtis
dissimilarity
index",cex.lab=2,cex.axis=1.7,pch=20,cex=2,col="darkgray",font=2,font.lab=2);text(0,0.34,"b",font=2,cex=1.7);text(1.5,0.10,"y=0.046x
+
0.145",cex=1.7,font=2);text(1.3,0.08,"R2=0.2439",cex=1.7,font=2);text(1.75,0.08,"p<0.001",cex=1.7,font=2);abline(0.145498,0.046005,lwd=2)
plot.t3<-plot(data.dist,flot3.bray.hell,xlab="log10(FFC+1)",ylab="Bray-Curtis
dissimilarity
index",cex.lab=2,cex.axis=1.7,pch=20,cex=2,col="darkgray",font=2,font.lab=2);text(0,0.31,"c",font=2,cex=1.7);text(1.5,0.07,"y=0.024
+
0.162",cex=1.7,font=2);text(1.3,0.05,"R2=0.080",cex=1.7,font=2);text(1.75,0.05,"p<0.001",cex=1.7,font=2);abline(0.162675,0.02420,lwd=2)
dev.off()
##################################################
My graph (3 in 1) looks great, but my y-axis label is slightly cut-off and
thus it is unsuitable for publication/presentation. I could reduce the
cex.lab value, but it's not something I want to do. I have tried tweaking
the widths parameter for both tiff() and layout(), but without success. Any
help would be most appreciated.
Thanks in advance for your help!
Best Regards,
A
--
View this message in context: http://r.789695.n4.nabble.com/y-axis-slightly-cut-off-after-printing-plots-to-tiff-tp3309466p3309466.html
Sent from the R help mailing list archive at Nabble.com.
More information about the R-help
mailing list