R-beta: multiplot figure problems

Bill Simpson wsimpson at uwinnipeg.ca
Mon Mar 16 15:52:01 CET 1998

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

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 at stat.math.ethz.ch

More information about the R-help mailing list