Unlike ?admin1_choropleth, the regions here can span multiple countries.

admin1_region_choropleth(df, title = "", legend = "", num_colors = 7,
zoom = NULL, reference_map = FALSE)

## Arguments

df A data.frame with a column named "region" and a column named "value". Elements in the "region" column must exactly match how regions are named in the "region" column in ?admin1.regions in the choroplethrAdmin1 package An optional title for the map. An optional name for the legend. The number of colors on the map. A value of 1 will use a continuous scale. A value in [2, 9] will use that many colors. An optional vector of regions to zoom in on. Elements of this vector must exactly match the names of regions as they appear in the "region" column of ?admin1.regions. If true, render the choropleth over a reference map from Google Maps.

## Examples


admin1_region_choropleth(df)#> Warning: Column region joining character vector and factor, coercing into character vector