Dear Antje I cannot see that you have got any replies yet, so I will make and attempt. However, I am sure other have more formally correct solutions.
When you call the pdf(), you can set paper="a4" (or "a4r" for landscape). However, the width and the height of your plot should then not exceed the size of the paper (which is approximately 8.27*11.69 inches for "a4"). Try (I have only tested on windows XP, R 2.5.0): pdf("test1.pdf", width=10, heigh=5, paper="a4r") par(mfrow=c(1,3), pty="s") #pty="s" gives square plotting regions plot(rnorm(100)) plot(rnorm(100)) plot(rnorm(100)) dev.off() Hope this helps Ivar Antje skrev: > I still have this problem. Does anybody know any solution? > > Antje > > Antje schrieb: > >> Hello, >> >> I'm trying to plot a set of barplots like a matrix (2 rows, 10 columns >> from"reduced_mat") to a pdf. It works with the following parameters: >> >> pdf("test.pdf",width=ncol(reduced_mat)*2, height=nrow(reduced_mat)*2, >> pointsize >> = 12) >> >> par(mfcol = c(nrow(reduced_mat),ncol(reduced_mat)), oma = c(0,0,0,0), >> lwd=48/96, cex.axis = 0.5, las = 2, cex.main = 1.0) >> >> The I get a long narrow page format with the quadratic barplots. >> >> But I would like to have a A4 format in the end and the plots not filling >> the >> whole page (they should stay somehow quadratic and not be stretched...). >> >> What shall I look for to achieve this? >> >> Antje >> >> ______________________________________________ >> R-help@stat.math.ethz.ch mailing list >> https://stat.ethz.ch/mailman/listinfo/r-help >> PLEASE do read the posting guide http://www.R-project.org/posting-guide.html >> and provide commented, minimal, self-contained, reproducible code. >> >> > > ______________________________________________ > R-help@stat.math.ethz.ch mailing list > https://stat.ethz.ch/mailman/listinfo/r-help > PLEASE do read the posting guide http://www.R-project.org/posting-guide.html > and provide commented, minimal, self-contained, reproducible code. > ______________________________________________ R-help@stat.math.ethz.ch mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.