R/plotChoropleth.R
plotChoropleth.Rd
Basic plotting function to create a choropleth (map with areas shaded by prevalence)
plotChoropleth(
df,
fillVar = "proportion",
title = NULL,
subtitle = NULL,
proj4 = "+proj=wag7 +lon_0=11 +datum=WGS84 +units=m +no_defs"
)
Dataframe resulting from calling getCumulativeBySubadmin
(optional) Which variable within `df` that should be used to fill the location areas. (`proportion` by default)
(optional) Title to include on plot
(optional) Subtitle to include on plot
(optional) PROJ4 projection string used to project geographic coordinates. https://proj.org/operations/projections/wag7.html, appropriate for World maps, is used by default