getMap {EpiReport} | R Documentation |
Get disease-specific map: distribution of cases by Member State
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:
Bookmark
'MAP_NB'
: Distribution of cases by country. An additional caption will be included at the location of the bookmark'MAP_NB_CAPTION'
.Bookmark
'MAP_RATE'
: Distribution of cases per 100 000 population by country. An additional caption will be included at the location of the bookmark'MAP_RATE_CAPTION'
.Bookmark
'MAP_ASR'
: Distribution of cases using age-strandardised rates per 100 000 population by country. An additional caption will be included at the location of the bookmark'MAP_ASR_CAPTION'
.
(see ECDC reports https://www.ecdc.europa.eu/en/all-topics-z/surveillance-and-disease-data/annual-epidemiological-reports-aers)
Usage
getMap(
disease = "DENGUE",
year = 2019,
reportParameters = EpiReport::AERparams,
index = 1,
pathPNG = system.file("maps", package = "EpiReport"),
doc
)
Arguments
disease |
character string, disease code (default |
year |
numeric, year to produce the map for (default |
reportParameters |
dataframe, dataset including the required parameters
for the map and report production (default |
index |
integer, figure number |
pathPNG |
character string, full path to the folder containing the maps in PNG
(default 'maps' folder included in the package |
doc |
'Word' document (see |
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
# --- 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")