Description Usage Arguments Value Warning See Also Examples
View source: R/mortality_ages.R
plot_covid_mortality()
is used to create a plot of the COVID-19 mortality per age group and user-definded
time period.
1 2 3 4 5 6 7 | plot_covid_mortality(
ages = "all",
regions = "Germany",
from = "2020-01-01",
to = Sys.Date(),
smoothing = 0
)
|
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'. |
A plot of the COVID-19 associated mortality per age group and time period.
These numbers must be handled carefully because of the unknown dark figure.
Other COVID-19 associated mortality:
calc_covid_mortality()
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")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.