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

From: Brahm, David <David.Brahm_at_geodecapital.com>
Date: Tue 12 Jul 2005 - 03:55:43 EST


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.


R-help@stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html Received on Tue Jul 12 04:05:24 2005

This archive was generated by hypermail 2.1.8 : Fri 03 Mar 2006 - 03:33:30 EST