[R] problem with multiple plots (mfrow, mar)
Peter Neuhaus
pneuhaus at pneuhaus.de
Fri Feb 19 01:39:17 CET 2010
Greg Snow wrote:
> Use outer margins. Try something like:
>
>> par(mfrow=c(3,1), mar=c(0,4,0,2)+0.1, oma=c(5,0,3,0)+0.1 )
>
> Then do your plots without resetting margins.
Thanks. Perfect! This little detail has been bothering me for quite a
while...
> Also you can use xaxt='n' rather than axes=FALSE to suppress just the x axis and not have to do the y axis and box by hand.
very helpful hint, too - will save me a lot of typing...
More information about the R-help
mailing list