Learn R Programming

wrMisc (version 1.15.3.1)

.checkLegendLoc: 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
)

Value

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

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

See Also

Examples

Run this code
.checkLegendLoc("abc")

Run the code above in your browser using DataLab