Learn R Programming

EpiReport v 1.0.4’ package

European Centre for Disease Prevention and Control (ECDC)

Description

The EpiReport package allows the user to draft an epidemiological report similar to the ECDC Annual Epidemiological Reports (see https://ecdc.europa.eu/en/annual-epidemiological-reports) in Microsoft Word format for a given disease getAER().

Through standalone functions, the package is specifically designed to generate each disease-specific output presented in these reports.

The package includes:

  • Table with the distribution of cases by Member State over the last five years getTableByMS()
  • Seasonal plot with the distribution of cases at EU/EEA level, by month, over the past five years getSeason()
  • Trend plot with the trend and number of cases at EU/EEA level, by month, over the past five years getTrend()
  • Age and gender bar graph with the distribution of cases at EU/EEA level getAgeGender()

Two types of datasets can be used:

  • The default dataset included in the EpiReport package which includes Denger data for 2015-2019: EpiReport::DENGUE2019;
  • Any dataset specified as described in the package vignette.

Copy Link

Version

Install

install.packages('EpiReport')

Monthly Downloads

536

Version

1.0.4

License

EUPL

Maintainer

Lore Merdrignac

Last Published

May 2nd, 2025

Functions in EpiReport (1.0.4)

getTemplate

Get epidemiological report (empty) template
getTrend

Get disease-specific trend plot: trend and number of cases by month
plotAgeGender

Age and Gender bar graph
getAgeGender

Get disease-specific age and gender bar graph
getSeason

Get disease-specific seasonality graph: distribution of cases by month
includeMap

Including PNG map in the 'Microsoft Word' template
getTableByMS

Get disease-specific table: distribution of cases by Member State (GeoCode)
getMap

Get disease-specific map: distribution of cases by Member State
plotAge

Age bar graph
orderQuasinum

Order 'quasinumerical' categorical vectors (increasing order)
plotBarGroupedH

Horizontal grouped bar graph
plotTS

Time series plot
plotBarH

Horizontal bar graph
plotTSGrouped

Multiple time series plot
plotBar

Bar graph
previewMap

Previewing the PNG map
plotSeasonality

Seasonality line graph
plotPie

Pie chart
plotBarGrouped

Grouped bar graph
shapeECDCFlexTable

Shaping the final table (layout, title, color, font)
toCapTitle

Capitalise first letter
plotTS12MAvg

Time series with 12-month moving average
cleanECDCTable

Cleaning the final table
cleanMeasureCode

Clean the MeasureCode variable
AERparams

Dataset describing the parameters for the epidemiological report production
MSCode

Dataset correspondence table between country names and country code
getAER

Get full disease-specific epidemiological report
body_replace_gg_at_bkm

Replace a plot at a bookmark location
filterDisease

Filter disease parameters
DENGUE2019

Dataset including Dengue data for 2015-2019
EcdcColors

Colour palettes following the March 2018 ECDC guidelines for presentation of surveillance data
SALM2016

Dataset including Salmonellosis data for 2012-2016