setLegend | R Documentation |
This sets the acmap legend used when viewing a map for example.
setLegend(map, legend, fill, style.bottom = "8px", style.right = "8px")
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. |
Returns the updated acmap object
Other functions to view maps:
RacViewer.options()
,
RacViewer()
,
export_viewer()
,
ggplot.acmap()
,
mapGadget()
,
plot.acmap()
,
view.acmap()
,
view.default()
,
view()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.