Learn R Programming

autoimage (version 2.2.3)

automar: Sensible legend margins

Description

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.

Examples

Run this code
# NOT RUN {
automar()
automar("h")
automar("v")
# }

Run the code above in your browser using DataLab