This sets the acmap legend used when viewing a map for example.

setLegend(map, legend, fill, style.bottom = "8px", style.right = "8px")

Arguments

map

The acmap object

legend

A character vector of legend labels

fill

The fill color to be used with the boxes that appear alongside the legend labels

style.bottom

"bottom" style of the div, specifying how far from the bottom of the viewport the bottom of the legend is spaced.

style.right

"right" style of the div, specifying how far from the right of the viewport the bottom of the legend is spaced.

Value

Returns the updated acmap object

See also

Other functions to view maps: RacViewer.options(), RacViewer(), export_viewer(), ggplot.acmap(), mapGadget(), plot.acmap(), view.acmap(), view.default(), view()