Description Usage Arguments Value
View source: R/ez_choropleth.R
A shortcut for generating choropleth maps
1 2 3 4 5 6 7 8 9 | leafletPlot(
data_set,
col_name,
col_variable,
type_of_map,
bins_of_map,
col_variable_unit = "",
title = "Chloropleth Map"
)
|
data_set |
The name of the data set |
col_name |
The column name in the data set containing the regions (must be in quotes) |
col_variable |
The column name containing the variable of interest (must be in quotes) |
type_of_map |
The type of map you wish to specify; possible options are "countries", "us_states" |
bins_of_map |
The type of bins user wishes to use for map; must be a vector |
col_variable_unit |
The units of your variable; must be in quotes; if it is a percentage, put this argument as "%" |
title |
The title of the chloropleth map; must be in quotes |
Leaflet Map
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.