Function returning the plot describing the seasonality of the disease
that will be included in the epidemiological report at the bookmark location
'TS_SEASON'
of the template report.
The graph includes the distribution of cases at EU/EEA level, by month,
over the past five years, with:
The number of cases by month in the reference year (green solid line)
The mean number of cases by month in the four previous years (grey dashed line)
The minimum number of cases by month in the four previous years (grey area)
The maximum number of cases by month in the four previous years (grey area)
(see ECDC reports https://www.ecdc.europa.eu/en/publications-data/monitoring/all-annual-epidemiological-reports)
getSeason(
x = EpiReport::DENGUE2019,
disease = "DENGUE",
year = 2019,
reportParameters = EpiReport::AERparams,
MSCode = EpiReport::MSCode,
index = 1,
doc
)
'Word' doc or a ggplot2 object
dataframe, raw disease-specific dataset (see specification of the
dataset in the package vignette with browseVignettes(package = "EpiReport")
)
(default DENGUE2019
)
character string, disease code (default "DENGUE"
).
Please make sure the disease code is included in the disease-specific dataset x
in the HealthTopicCode
variable.
numeric, year to produce the graph for (default 2019
).
Please make sure the year is included in the disease-specific dataset x
in the TimeCode
variable.
dataframe, dataset including the required parameters
for the graph and report production (default AERparams
) (see specification
of the dataset in the package vignette with browseVignettes(package = "EpiReport")
)
dataframe, correspondence table of GeoCode names and codes
(default MSCode
) (see specification of the dataset in the
package vignette with browseVignettes(package = "EpiReport")
)
integer, figure number
'Word' document (see 'officer'
package) in which to add the graph
at the bookmark location.
If doc is missing, getSeason
returns the ggplot2
object.
Global function for the full epidemilogical report: getAER
Required Packages: ggplot
body_replace_text_at_bkm
Internal functions: plotSeasonality
Default datasets: AERparams
MSCode
# --- Plot using the default dataset
getSeason()
# --- Plot using external dataset
# --- Please see examples in the vignette
browseVignettes(package = "EpiReport")
Run the code above in your browser using DataLab