View source: R/plotChoropleth.R
plotChoropleth | R Documentation |
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" )
df |
Dataframe resulting from calling getCumulativeBySubadmin |
fillVar |
(optional) Which variable within 'df' that should be used to fill the location areas. ('proportion' by default) |
title |
(optional) Title to include on plot |
subtitle |
(optional) Subtitle to include on plot |
proj4 |
(optional) PROJ4 projection string used to project geographic coordinates. https://proj.org/operations/projections/wag7.html, appropriate for World maps, is used by default |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.