View source: R/plot_RKI_timeseries.R
plot_RKI_timeseries | R Documentation |
Simple plotting function for the RKI data. Please see the README for more information: https://github.com/nevrome/covid19germany
plot_RKI_timeseries( x, group = "Bundesland", type = "CumNumberTestedIll", label = T, logy = F, by_month = T, by_week = F )
x |
data.frame. RKI data as downloaded with |
group |
character. Grouping of the underlying timeseries. One of: "Bundesland", "Landkreis", "Gender", "Age". See |
type |
character. Type of count information. One of: "NumberNewTestedIll", "NumberNewDead", "NumberNewRecovered", "CumNumberTestedIll", "CumNumberDead", "CumNumberRecovered" |
label |
logical. Should labels be added? |
logy |
logical. Should the y-axis be log10-scaled? |
by_month |
logical. Should the output plot be grouped by month or by days? |
by_week |
logical. Deprecated and replaced by by_month |
rki_timeseries <- get_RKI_timeseries() plot_RKI_timeseries(rki_timeseries, "Gender", "CumNumberTestedIll")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.