SOmap and similar objects contain all of the data and code required to draw a map. This information is embedded in SO_plotter objects within the SOmap object.

SO_plotter(plotfun, plotargs = NULL, name = NULL)

Arguments

plotfun

function or string: either the name of a function to use, or the function itself

plotargs

list: arguments to pass to the function

name

string: optional name for this element

Value

An object of class SO_plotter

See also

SOmap

Examples

if (FALSE) { # \dontrun{
  p <- SOmap()
  ## replace the `box` element with different plotting code
  p$box <- SO_plotter(plotfun = "graphics::box", plotargs = list(col = "red"))

  ## you can also specify multiple plotting instructions for a single graphical element
  ##  of a map
  p$box <- c(SO_plotter(plotfun = "graphics::box", plotargs = list(col = "red")),
             SO_plotter(plotfun = "graphics::box", plotargs = list(lwd = 2)))
} # }