[R] mtext problem - grainy and massive file size

gcam032 gcam032 at gmail.com
Mon Apr 6 22:47:04 CEST 2009


Hi Team,

I'm on a mac, 0SX 10.5.6, R 2.7.2.

I consistently make pairs plots and use mtext() to put labels on top of the
plot in the outer margin.  All of a sudden, this text has become really
grainy in the final product and is making huge files.  I have no idea why
this has just started happening.  The only thing I've done lately is install
the new version of GIMP and run the script to change the std dpi in x11. 
I'm using the quartz device though so this shouldn't be affected??  I can
use the outer=F argument and the text turns out crisp as before, but as soon
as I put it out of the margin it goes funny.  If I plot the pairs plot
without any mtext() it's a nice crisp image and a small file size.  Weird. 
Here is my code

quartz(file="plot.pdf", type="pdf", height=12, width=12)
par(bg="white", oma=c(6,6,6,6))
pairs(W$x,pch=sourcs, col=c(rep(1, nrow(A)), rep("darkcyan", nrow(T)),
rep(4, nrow(K)), rep(2, nrow(H))), cex=1.5, cex.labels=4)
mtext("Catchment",side=3, outer=T, line=4,cex=2,at=0)
mtext("Arahura",side=3,outer=T,line=4.5,col=1,cex=1.75,at=.2)
mtext("Hokitkia",side=3,outer=T,line=4.5,col=2,cex=1.75,at=.35)
mtext("Kokatahi",side=3,outer=T,line=4.5,col=4,cex=1.75,at=.5)
mtext("Toaroha",side=3,outer=T,line=4.5,col="darkcyan",cex=1.75,at=.65)
dev.off()

Any help would be appreciated.  Thanks!
-- 
View this message in context: http://www.nabble.com/mtext-problem---grainy-and-massive-file-size-tp22917033p22917033.html
Sent from the R help mailing list archive at Nabble.com.




More information about the R-help mailing list