plot_traced_cases_percentage: Plot Time Series of Relative Traced Cases over Pandemic

Description Usage Arguments Value Warning See Also

View source: R/healthcare_system.R

Description

Plots the data created by calc_traced_cases, next to the STI of the regions for comparison.

Usage

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

Arguments

ages

A vector of numbers specifying the desired age groups. The available age groups are "A00-A04","A05-A14","A15-A34","A35-A59","A60-A79" and "A80+". The numbers in ages are automatically assigned to the belonging age group and afterwards, the cases and deaths of of these age groups are added up.

regions

A vector that either consists of strings (either the names of German districts or the names of German states) or district ID's. If this vector has more than one entry, the tibble contains the data of these regions together.

from

A date that specifies the beginning of the time series

to

A date that specifies the end of the time series

Value

A plot that displays the desired data next to the STI for comparison

Warning

When specifying region and agegroup, the data will not be accurate because there is no population data for the age groups in each district and it will be estimated by the age distribution of Germany. Therefore, it is recommended to specify only one or the other

See Also

Other traced cases: calc_traced_cases(), plot_traced_cases_total()


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