plot_covid_mortality: Plotting the COVID-19 associated mortality

Description Usage Arguments Value Warning See Also Examples

View source: R/mortality_ages.R

Description

plot_covid_mortality() is used to create a plot of the COVID-19 mortality per age group and user-definded time period.

Usage

1
2
3
4
5
6
7
plot_covid_mortality(
  ages = "all",
  regions = "Germany",
  from = "2020-01-01",
  to = Sys.Date(),
  smoothing = 0
)

Arguments

ages

A vector of integer numbers that specify the desired age groups.

regions

A vector that either consists of strings (the names of German districts or the names of German states) or district ID's. If this vector contains more than entry, the function plots the combined mortality of these districts or states.

from

A date that specifies the beginning of the time series

to

A date that specifies the end of the time series

smoothing

A positive integer that defines the window size of the moving average. Thus, the plot will be smoother the higher 'smoothing' is chosen. The default setting is 'no smoothing'.

Value

A plot of the COVID-19 associated mortality per age group and time period.

Warning

These numbers must be handled carefully because of the unknown dark figure.

See Also

Other COVID-19 associated mortality: calc_covid_mortality()

Examples

1
2
3
plot_covid_mortality(ages=c(10,76,42),regions=c("Bayern","Sachsen"))

plot_covid_mortality(ages="all",regions=8221,from="2020-02-03",to="2021-02-03")

slausmeister/revolution documentation built on Dec. 23, 2021, 3:24 a.m.