utilities: Utility Functions for the 'addScales' package

Description Usage Arguments Value Author(s)

Description

Non-exported functions meant for package internal use.

Usage

1
2
3
4
5
parseInputs(val)

buildLegend(legend,
   lloc = c("top","bottom","right","left"),
   spacing = 1.3)

Arguments

val

scaleline or legend argument of the addScales call to be parsed

legend

legend list after being parsed: a list of 2 textGrobs with names c("h","v")

lloc

one of "top","bottom","left", or "right" where the legend will be placed

spacing

horizontal/vertical spacing between the "h" and and "v" components of the legend (which depends on lloc)

Value

For parseInputs, properly parsed 2-component lists with component names "h" and "v" in that order.

For buildLegend, a grid frameGrob for use as the fun component for a legend of a trellis object.

Author(s)

Bert Gunter bgunter.4567@gmail.com


addScales documentation built on July 1, 2020, 9:25 p.m.