R-beta: multiplot figure problems

Bill Simpson (wsimpson@uwinnipeg.ca)
Mon, 16 Mar 1998 08:52:01 -0600 (CST)


Date: Mon, 16 Mar 1998 08:52:01 -0600 (CST)
From: Bill Simpson <wsimpson@uwinnipeg.ca>
To: r-help <r-help@stat.math.ethz.ch>
Subject: R-beta: multiplot figure problems

I wanted to have a figure consisting of 2 square plots, one above the
other (2 rows, 1 column).
I am using 61.1 on Linux.

I did:
> x1<-rnorm(100)
> y1<-rnorm(100)
> par(mfcol=c(2,1))
> plot(x1,y1,pty="s",mfg=c(1,1,2,1))
> plot(x1,y1,pty="s",mfg=c(2,1,2,1))

The resulting figure consists of two plots, one above each other, BUT they
are extremely squished in the y direction: each one is 12 cm wide by 4 cm
high.  ( I am basing this on 1)R Graphics window 2) saved figure to
postscript file and it is this way too).  The space does not appear to be
used very efficiently:  there is a big empty space at the top and in
between the two plots.

Please tell me how to get the two plots in the multiplot figure to be
square.

Thanks very much for any help.

Bill Simpson

-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
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
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._