dot-checkLegendLoc: Check argument for Location of legend

.checkLegendLocR Documentation

Check argument for Location of legend

Description

This function allows checking an argument for Location of legend, if value provided not found as valid, it returns 'defLoc

Usage

.checkLegendLoc(
  legLoc,
  defLoc = "topright",
  silent = FALSE,
  debug = FALSE,
  callFrom = NULL
)

Arguments

legLoc

(character) main input

defLoc

(character)

silent

(logical) suppress messages

debug

(logical) additional messages for debugging

callFrom

(character) allow easier tracking of messages produced

Value

This function returns a character vector designing the potential location of legend

See Also

legend

Examples

.checkLegendLoc("abc")

wrMisc documentation built on Nov. 17, 2023, 5:09 p.m.