getMap: Get disease-specific map: distribution of cases by Member...

Description Usage Arguments Value See Also Examples

View source: R/AER_maps.R

Description

Function returning the disease-specific PNG map previously created and stored in a specific folder (see pathPNG argument) and that will be included in the epidemiological report at the bookmark location of the template report, depending of the type of map. Three type of maps can be included in the report:

(see ECDC reports https://www.ecdc.europa.eu/en/annual-epidemiological-reports)

Usage

1
2
3
4
5
6
7
8
getMap(
  disease = "DENGUE",
  year = 2019,
  reportParameters = EpiReport::AERparams,
  index = 1,
  pathPNG = system.file("maps", package = "EpiReport"),
  doc
)

Arguments

disease

character string, disease code (default "DENGUE").

year

numeric, year to produce the map for (default 2019).

reportParameters

dataframe, dataset including the required parameters for the map and report production (default AERparams) (see specification of the dataset in the package vignette with browseVignettes(package = "EpiReport"))

index

integer, figure number

pathPNG

character string, full path to the folder containing the maps in PNG (default 'maps' folder included in the package system.file("maps", package = "EpiReport"))

doc

'Word' document (see 'officer' package) in which to add the maps at the bookmark location. If doc is missing, getMap returns a preview of the PNG image.

Value

'Word' doc an image preview

See Also

Global function for the full epidemilogical report: getAER
Required Packages: officer
Internal functions: includeMap previewMap
Default datasets: AERparams

Examples

1
2
3
4
5
6
# --- Preview of the PNG map using the default Dengue dataset
getMap()

# --- Plot using external PNG image
# --- Please see examples in the vignette
browseVignettes(package = "EpiReport")

EU-ECDC/EpiReport documentation built on Feb. 11, 2021, 6:30 p.m.