Description Usage Arguments Value
Makes a quick thematic (choropleth) map from data provided, with a fixed colour scheme.
1 2 3 |
.data |
DataFrame or sf DataFrame with the data to plot. |
fill_var |
column to map to the fill aesthetic. |
.map |
sf DataFrame of the map to fill, if '.data“ is not already an sf object. |
join_by |
column or dplyr join specification to join '.data“ and '.map by'. |
remove_na |
whether to remove shapes that have NA values or not. |
background_map |
sf DataFrame of a map to plot as the background. |
breaks |
number of vector of breaks for the colour scale of 'fill_var'. |
break_name_expr |
regex to clean up break names with. |
scale_name |
name for the fill scale label. |
ggplot thematic map
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.