R-beta: mfg weirdness
Bill Simpson
wsimpson at uwinnipeg.ca
Wed Mar 25 18:24:28 CET 1998
It seems there are problems with mfg, both the old version .61.2 and the
snapshot .62.
> x<-rnorm(100)
> y<-rnorm(100)
> y1<-x/y
> x11()
> par(mfcol=c(2,1))
> par(mai=c(.6,.6,.2,.2))
> plot(x,y,mfg=c(2,1,2,1))
I'm not sure if 2,1 is considered the top or the bottom position on the
page, but whether you say mfg=c(2,1,2,1) or mfg=c(1,1,2,1), the first plot
is always drawn at the top position.
> plot(x,y,mfg=c(2,1,2,1))
Now the second plot is drawn at the bottom position. Again, the mfg
argument has no effect. The second plot is always at the bottom
> plot(x,y1,mfg=c(2,1,2,1))
Now the whole figure is cleared and a single plot appears at the top.
Further plots alternate in position in this way, independent of mfg.
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