Learn R Programming

Racmacs (version 1.2.9)

setLegend: Set acmap legend

Description

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

Usage

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

Value

Returns the updated acmap object

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.

See Also

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