plot_abs_deaths: Plotting the total number of daily deaths in Germany

Description Usage Arguments Value See Also Examples

View source: R/deaths.R

Description

plot_abs_deaths is used to create a plot of the total number of deaths during the time span of a year. It is possible to include more than one year.

Usage

1
plot_abs_deaths(years = 2020, smoothing = 0)

Arguments

years

A vector of years. The years must be represented as integers. Data is available for the years 2000 up to 2020.

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 daily death data of the years the user specified.

See Also

Other total number of daily deaths: get_abs_deaths()

Examples

1
2
3
4
5
6
7
get_abs_deaths(c(2001,2003,2006,2016),smoothing=2)

## Not run: get_abs_deaths(1999)
#Data is only available for 2000-2020.

## Not run: get_abs_deaths(c("2006"),smoothing=-2.4)
#Years must be a vector of integer values and smoothing must be a positive integer.

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