View source: R/choropleth_GnmNum.R
| lflt_choropleth_Gnm | R Documentation |
lflt_choropleth_Gnm() Create a Leaflet choropleth map based on a particular data type.
In this case, you can load data with only one column, where it's a geoname column,
or make sure that the first column of your data meet this condition
lflt_choropleth_Gnm(data = NULL, ...)
Gnm
data <- sample_data("Gnm", n = 30)
lflt_choropleth_Gnm(data)
# Activate data labels
lflt_choropleth_Gnm(data)
# if you want to calculate the average instead of the sum, you can use agg inside a function
lflt_choropleth_Gnm(data,
agg = "mean")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.