afcov_map: plot map of subnational covid data by country

Description Usage Arguments Value Examples

View source: R/afcov_map.r

Description

*in progress to show cases or deaths

Usage

1
2
3
4
5
6
7
8
9
afcov_map(
  country,
  attribute = "CONTAMINES",
  dates = "last",
  timeinterval = NULL,
  language = "en",
  legend.position = "top",
  palette = "YlGnBu"
)

Arguments

country

a character vector of country names or iso3c character codes.

attribute

attribute to plot, from dfhera

dates

either 'all', 'last' or c(start,end) in format "2021-01-31"

timeinterval

optional interval to sum over, options e.g. "5 days" "week" "month"

language

'which admin level to return 'en' or 'fr' for country name

legend.position

default "top", options "left","right","bottom"

palette

RColorBrewer palette options default="YlGnBu"

Value

ggplot

Examples

1
2
3
4
afcov_map('Mali')

#a 6 daily facetted map
afcov_map('senegal', dates=c("2021-01-01","2021-01-06"))

afrimapr/africovid documentation built on June 2, 2021, 8:57 a.m.