choropleth: choropleth

Description Usage Arguments Examples

View source: R/choropleth.R

Description

Choropleth map based on geojson data

Usage

1
choropleth(fig, mapdata, group = NULL, pal = NULL, na = NA)

Arguments

fig

a leaflet object to which the choropleth polygons will be added.

mapdata

geojson (sf or sp) object. Should contain columns n, label, color.

na

- value with which to replace NAs in n.

Examples

1
#

rushkin/bitsandends documentation built on Oct. 21, 2020, 11:43 a.m.