A seasonal subseries plot facets the time series by each season in the
seasonal period. These facets form smaller time series plots consisting of
data only from that season. If you had several years of monthly data, the
resulting plot would show a separate time series plot for each month. The
first subseries plot would consist of only data from January. This case is
given as an example below.
Usage
gg_subseries(data, y = NULL, period = NULL, ...)
Value
A ggplot object showing a seasonal subseries plot of a time series.
Arguments
data
A tidy time series object (tsibble)
y
The variable to plot (a bare expression). If NULL, it will
automatically selected from the data.
period
The seasonal period to display.
...
Additional arguments passed to geom_line()
Details
The horizontal lines are used to represent the mean of each facet, allowing
easy identification of seasonal differences between seasons. This plot is
particularly useful in identifying changes in the seasonal pattern over time.
similar to a seasonal plot (gg_season()), and
References
Hyndman and Athanasopoulos (2019) Forecasting: principles and practice,
3rd edition, OTexts: Melbourne, Australia. https://OTexts.com/fpp3/