plots a legend

bb_plotLegend(
  legend,
  params = NULL,
  orientation = "v",
  fillcolor = NULL,
  pch = NULL,
  lty = NULL,
  title = NULL,
  fontsize = 10,
  border = TRUE,
  bg = NA,
  x = NULL,
  y = NULL,
  width = NULL,
  height = NULL,
  just = c("left", "top"),
  default.units = "inches",
  draw = TRUE,
  ...
)

Arguments

legend

single value or vector of legend text#'

params

an optional "bb_params" object space containing relevant function parameters

orientation

"v" (vertical) or "h" (horizontal) orientation

fillcolor

if specified, this argument will produce boxes filled with the specified colors to appear beside the legend text

pch

if specified, this argument will produce symbols to appear beside the legend text

lty

if specified, this argument will produce line types to appear beside the legend text

title

legend title

border

option to add border around legend

bg

background color of legend

x

A numeric vector or unit object specifying x-location

y

A numeric vector or unit object specifying y-location

width

A numeric vector or unit object specifying width

height

A numeric vector or unit object specifying height

just

justification of scale viewport

default.units

A string indicating the default units to use if x, y, width, or height are only given as numeric vectors

draw

A logical value indicating whether graphics output should be produced