mapdeck_legend: Mapdeck Legend

Description Usage Arguments See Also Examples

View source: R/legend.R

Description

Constructs legend elements into the correct JSON format for plotting on the map

Usage

1
mapdeck_legend(legend_elements)

Arguments

legend_elements

vector of legend elements (made from legend_element)

See Also

legend_element

Examples

1
2
3
4
5
6
7
8
9
l1 <- legend_element(
	variables = c("a","b")
	, colours = c("#00FF00","#FF0000")
	, colour_type = "fill"
	, variable_type = "category"
	, title = "my title"
)

mapdeck_legend(l1)

mapdeck documentation built on Sept. 4, 2020, 9:07 a.m.