automar: Sensible legend margins

Description Usage Arguments Details Examples

View source: R/auto_functions_other.R

Description

automar determines sensible margins for legend.scale based on the value currently set for par("mar").

Usage

1
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

1
2
3
automar()
automar("h")
automar("v")

jpfrench81/autoimage documentation built on March 17, 2021, 12:09 a.m.