View source: R/tm_add_legend.R
tm_add_legend | R Documentation |
Map component that adds a manual legend
tm_add_legend(
...,
labels,
type = "symbols",
title = "",
design = NULL,
orientation = NULL,
group = NA,
group.control = "check",
resize.as.group = FALSE,
z = as.integer(NA)
)
... |
visual variables and arguments passed on to |
labels |
labels |
type |
the layer type from which the visual variables (see |
title |
text of the title |
design |
legend design |
orientation |
legend orientation |
group |
Name of the group to which this layer belongs. This is only
relevant in view mode, where layer groups can be switched (see |
group.control |
In view mode, the group control determines how
layer groups can be switched on and off. Options: |
resize.as.group |
resize.as.group |
z |
z |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.