[R] Help with graphic margin
Filoche
pmassicotte at hotmail.com
Fri Sep 17 01:55:24 CEST 2010
Hi there and thank you for reply.
I have been trying that, using mar to set margin around each plot and oma to
specify bottom space. However, it wont display the xlab.
Here's my code :
pdf(file="/home/persican/Desktop/test.pdf", width = 3.5, height = 5.6,
pointsize = 8);
par(mfcol = c(3,1), mar = c(1,1,1,1), oma = c(10,1,1,1));
plot(x,y, pch = 21, bg = "gray", xaxt = "n", yaxt = "n", ylab = "ylab");
...
plot(x,y, pch = 21, bg = "gray", xaxt = "n", yaxt = "n", ylab = "ylab");
...
plot(x,y, pch = 21, bg = "gray", xaxt = "n", yaxt = "n", ylab = "ylab", xlab
="X axis");
axis(1, tck = 0.02);
axis(2, tck = 0.02);
dev.off();
This produce : http://img837.imageshack.us/img837/5397/testpdfpages.jpg
http://img837.imageshack.us/img837/5397/testpdfpages.jpg
As we can figure, we dont see the xlab on the last plot.
With regards,
Phil
--
View this message in context: http://r.789695.n4.nabble.com/Help-with-graphic-margin-tp2542469p2543136.html
Sent from the R help mailing list archive at Nabble.com.
More information about the R-help
mailing list