Generates a Leaflet widget to plot areal data. Requires leaflet
and
leaflet.extra
package.
Usage
areal.plot(map, data, palette = "YlOrRd", title = "Value")
Arguments
- data
Vector of data to plot.
- palette
Character. Palette to use in Leaflet widget.
- title
Character. Title for the legend.
- SpatialPolygons
Spatial Polygons object.