[R] small first graph of par(3,2), other 5 are correct

Brahm, David David.Brahm at geodecapital.com
Mon Jul 11 19:55:43 CEST 2005


Scot,

Here is your toy example in more condensed form:

x11()
par(mar=c(0.5, 1, 5, 5))
par(mfrow=c(3,2))
plot(1:10)
par("mex")                   # mex=1.0 here
par(cex.axis=1.0, mex=0.5)   # Now you change it
for (i in 1:5) plot(1:10)

When you build your first plot (effectively at the plot.new() command),
your "mex" parameter is 1, and that leaves lots of space in the margins.
Then you set mex=0.5, which holds for all subsequent plots, and they get
less margin space.

-- David Brahm (brahm at alum.mit.edu)




More information about the R-help mailing list