ggmonthplot: Create a seasonal subseries ggplot

View source: R/ggplot.R

ggmonthplotR Documentation

Create a seasonal subseries ggplot

Description

Plots a subseries plot using ggplot. Each season is plotted as a separate mini time series. The blue lines represent the mean of the observations within each season.

Usage

ggmonthplot(x, labels = NULL, times = time(x), phase = cycle(x), ...)

ggsubseriesplot(x, labels = NULL, times = time(x), phase = cycle(x), ...)

Arguments

x

a time series object (type ts).

labels

A vector of labels to use for each 'season'

times

A vector of times for each observation

phase

A vector of seasonal components

...

Not used (for consistency with monthplot)

Details

The ggmonthplot function is simply a wrapper for ggsubseriesplot as a convenience for users familiar with monthplot.

Value

Returns an object of class ggplot.

Author(s)

Mitchell O'Hara-Wild

See Also

monthplot

Examples


ggsubseriesplot(AirPassengers)
ggsubseriesplot(woolyrnq)


forecast documentation built on June 22, 2024, 9:20 a.m.