plotChoropleth: Basic plotting function to create a choropleth (map with...

View source: R/plotChoropleth.R

plotChoroplethR Documentation

Basic plotting function to create a choropleth (map with areas shaded by prevalence)

Description

Basic plotting function to create a choropleth (map with areas shaded by prevalence)

Usage

plotChoropleth(
  df,
  fillVar = "proportion",
  title = NULL,
  subtitle = NULL,
  proj4 = "+proj=wag7 +lon_0=11 +datum=WGS84 +units=m +no_defs"
)

Arguments

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


outbreak-info/R-outbreak-info documentation built on March 2, 2023, 9:58 a.m.