ggts_trend_facet: Trend facet plot for each case type

Description Usage Arguments Value See Also Examples

View source: R/ggts_corona.R

Description

Provide trend facet plot for each case type (e.g. Confirmed and Deaths)

Usage

1
2
3
4
5
6
ggts_trend_facet(
  data,
  x = .data$Date,
  y = .data$Cases,
  vars_1 = .data$Case_Type
)

Arguments

data

A data frame

x

Unquoted df data-variable to specify the time index variable (default: Date).

y

Unquoted df data-variable of the cases

vars_1

Unquoted df data-variable of the case types

Value

plot object of mode "plot"

See Also

ggts_cum_daily

Examples

1
2
3
4
# Corona data of "Germany" - plot cumulative cases for 'Confirmed' and
# 'Deaths' and 'Confirmed'
ggts_trend_facet(corona_data %>% dplyr::filter(Country == "Germany"))
ggts_trend_facet(corona_data %>% dplyr::filter(Country == "Germany"), y = Cases_100k)

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