add_custom_legend: Add a custom legend to a leaflet map

Description Usage Arguments

View source: R/utils.R

Description

Adding (manually) a legend in leaflet

Usage

1
add_custom_legend(map, colors, labels, sizes, opacity = 0.65)

Arguments

map

A leaflet object

colors

A vector of colors (to fill the circles)

labels

A vector of labels

sizes

A vector of sizes

opacity

The opacity of the circles


DouglasMesquita/marineApp documentation built on Dec. 17, 2021, 5:29 p.m.