Description Usage Arguments Value Warning See Also
View source: R/healthcare_system.R
Plots the data created by calc_traced_cases
, next to the STI of the regions for comparison.
1 2 3 4 5 6 7 | plot_traced_cases_percentage(
ages = "all",
regions = "Germany",
from = "2020-01-01",
to = Sys.Date(),
smoothing = 0
)
|
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 |
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 |
A plot that displays the desired data next to the STI for comparison
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
Other traced cases:
calc_traced_cases()
,
plot_traced_cases_total()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.