Creates a Choropleth
redist.choropleth(
shp,
fill = NULL,
fill_label = "",
title = "",
grad = 1,
lwd = 0
)
A SpatialPolygonsDataFrame or sf object. Required.
A numeric/integer vector with values to color the plot with. Optional.
A string title of plot. Defaults to empty string. Optional.
A string title of plot. Defaults to empty string. Optional.
Number of colors to make a gradient with. Accepts values of 1 or 2.
Line width. Defaults to 0
ggplot map
Creates a basic choropleth for a provided shp with value. Recommended to normalize data to avoid absolute values, in most use cases.