ts_seasonality: Explore time series seasonality

Description Usage Arguments Value Examples

View source: R/ts_seasonality.R

Description

Creates side-by-side boxplots for analyzing seasonality for weekly, monthly, and quarterly time series tibbles.

Usage

1
ts_seasonality(ts_df, ts_type)

Arguments

ts_df

A tibble containing dates in column labeled 'ds' and values in column labeled 'y'.

ts_type

A string indicating the type of time series. Valid options are 'daily', 'monthly', and 'quarterly'.

Value

A seasonality plot.

Examples

1
2
df <- tidyr::tibble(ds = lubridate::today() - 100:1, y = rnorm(100))
ts_seasonality(df, 'daily')

travisandersen14/tsfuncs documentation built on May 23, 2020, 12:38 a.m.