ggts_cum_daily: Cumulative and daily data trend plot

Description Usage Arguments Value See Also Examples

View source: R/ggts_corona.R

Description

Provide trend plot for cumulative and daily cases with facets of vars_1 = Case_Type

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
ggts_cum_daily(
  data,
  y_cum = .data$Cases,
  y_daily = .data$Daily_Cases,
  mean_daily = .data$Mean_Daily_Cases,
  country,
  span = 7,
  weeks = 12,
  ...
)

Arguments

data

A data frame

y_cum

Unquoted df data-variable of the cumulative cases

y_daily

Unquoted df data-variable of the daily cases

mean_daily

Unquoted df data-variable of the daily rolling mean data

country

Unquoted df data-variable of the countries

span

Numeric, span used for rolling mean calculation

weeks

Numeric, number of time range weeks weeks for the daily data, dates are provided in column default = Date

...

Other arguments passed on to ggts_trend_facet(). Unquoted df data-variable to specify the time index variable (default: DATE).

Value

plot object of mode plot

See Also

ggts_trend_facet, ggts_conf_deaths_facet and ggplot2::ggplot

Examples

1
2
# Corona data of "Germany")
ggts_cum_daily(corona_data, country = "Germany", weeks = 6)

WoVollmer/pkgTS documentation built on June 2, 2021, 4:02 a.m.