create_bivariate_map | R Documentation |
Create Bivariate Choropleth Map
create_bivariate_map(
data,
var_1,
var_2,
color_matrix = NULL,
custom_labels = NULL
)
data |
A spatial data frame |
var_1 |
Character string naming first variable |
var_2 |
Character string naming second variable |
color_matrix |
Optional custom color matrix |
custom_labels |
Optional vector of custom HTML labels for tooltips |
A leaflet map object
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.