automar determines sensible margins for
legend.scale based on the value currently
set for par("mar").
Usage
automar(legend = "none")
Arguments
legend
A character string indicating the orientation of the
legend.scale. The default is
"none". The other valid options are "horizontal"
and "vertical".
Details
The margins produced by automar are based on the current
choice of par("mar"). If the user has specified a poor
choice for par("mar"), then automar might also
produce a poor choice for the legend margin.