Dear all, I have a question about "par" options. When I choose par(pty="s",mfrow=c(2,2)), how can I change the horizontal distance between the plots???? I have tried to use some options, like "mai", "mar", "oma", "omd", so on but I didn''t get the expected result. Some suggest will be appreciated. JM. -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.- r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html Send "info", "help", or "[un]subscribe" (in the "body", not the subject !) To: r-help-request@stat.math.ethz.ch _._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._
I have a concrete example of this problem: p <- 1:3 u <- matrix(c(1,1,1,2,2,2,3,3,3),3,) r <- p*u # bitmap("logq.bmp",type="bmpmono",height=3.5,width=7,res=96) par(mfcol=c(1,3),cex=1.5,mar=c(8,4,4,0),pin=c(1.2,1.4)) matplot(p,r,type="b",main="A",col="black") matplot(log(p),log(r),type="b",main="B",col="black") r <- p+u matplot(p,r,type="b",main="C",col="black") # dev.off() This was for someone who wanted to drop it into a Word document (hence the lines commented out) - a test of mathematical reasoning. Word did not like it if the margin was too big. (Eventually I chopped it with xv.) Try as I might, I could not adjust the margins so that it took up the whole space on the page, horizontally, and the labels and figures were nicely spaced yet not so small as to be unreadable. If I made the margins too small, the labels became invisible. Jon -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.- r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html Send "info", "help", or "[un]subscribe" (in the "body", not the subject !) To: r-help-request at stat.math.ethz.ch _._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._
Josmar Mazucheli <mazucheli at uol.com.br> writes:> Dear all, I have a question about "par" options. > > > When I choose par(pty="s",mfrow=c(2,2)), how can I change the horizontal distance between > the plots???? > > I have tried to use some options, like "mai", "mar", "oma", "omd", so on but I didn't get the expected result. > > Some suggest will be appreciated.Reducing the "top" or "bottom" value in par(mar=) ought to help, but you might find that there is stuff being written on the lines that you've removed. I sometimes use par(mex=0.8) to reduce the interline distance. -- O__ ---- Peter Dalgaard Blegdamsvej 3 c/ /'_ --- Dept. of Biostatistics 2200 Cph. N (*) \(*) -- University of Copenhagen Denmark Ph: (+45) 35327918 ~~~~~~~~~~ - (p.dalgaard at biostat.ku.dk) FAX: (+45) 35327907 -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.- r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html Send "info", "help", or "[un]subscribe" (in the "body", not the subject !) To: r-help-request at stat.math.ethz.ch _._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._