[R] par

Peter Dalgaard BSA p.dalgaard at biostat.ku.dk
Mon Jun 11 19:28:46 CEST 2001

```baron at cattell.psych.upenn.edu (Jonathan Baron) writes:

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

This is not too bad by my standards:

X11(height=3.5,width=7)
par(mfcol=c(1,3),cex=1.5,mex=0.6, mar=c(5,4,4,1)+.1)
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")

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

```