ggmonthplot | R Documentation |
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.
ggmonthplot(x, labels = NULL, times = time(x), phase = cycle(x), ...)
ggsubseriesplot(x, labels = NULL, times = time(x), phase = cycle(x), ...)
x |
a time series object (type |
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) |
The ggmonthplot
function is simply a wrapper for
ggsubseriesplot
as a convenience for users familiar with
monthplot
.
Returns an object of class ggplot
.
Mitchell O'Hara-Wild
monthplot
ggsubseriesplot(AirPassengers)
ggsubseriesplot(woolyrnq)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.