plot_RKI_timeseries: plot_RKI_timeseries

View source: R/plot_RKI_timeseries.R

plot_RKI_timeseriesR Documentation

plot_RKI_timeseries

Description

Simple plotting function for the RKI data. Please see the README for more information: https://github.com/nevrome/covid19germany

Usage

plot_RKI_timeseries(
  x,
  group = "Bundesland",
  type = "CumNumberTestedIll",
  label = T,
  logy = F,
  by_month = T,
  by_week = F
)

Arguments

x

data.frame. RKI data as downloaded with get_RKI_timeseries

group

character. Grouping of the underlying timeseries. One of: "Bundesland", "Landkreis", "Gender", "Age". See group_RKI_timeseries for more information

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

Examples


rki_timeseries <- get_RKI_timeseries()

plot_RKI_timeseries(rki_timeseries, "Gender", "CumNumberTestedIll")



nevrome/covid19germany documentation built on Nov. 2, 2022, 12:25 a.m.