View source: R/02-leafletPointSettings.R
setColorLegend | R Documentation |
Set Colour Legend
setColorLegend(map, showLegend, title, pal, values)
map |
leaflet map |
showLegend |
logical show/hide legend |
title |
legend title |
pal |
colour palette |
values |
possible values that can be mapped, e.g. isoData$source |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.