Description Usage Arguments Value Author(s) References See Also Examples
Plots a seasonal plot as described in Hyndman and Athanasopoulos (2014, chapter 2). This is like a time plot except that the data are plotted against the seasons in separate years.
1 2 3 4 5 6 7 | ggseasonplot(x, season.labels = NULL, year.labels = FALSE,
year.labels.left = FALSE, type = NULL, col = NULL, continuous = FALSE,
polar = FALSE, labelgap = 0.04, ...)
seasonplot(x, s, season.labels = NULL, year.labels = FALSE,
year.labels.left = FALSE, type = "o", main, xlab = NULL, ylab = "",
col = 1, labelgap = 0.1, ...)
|
x |
a numeric vector or time series of class |
season.labels |
Labels for each season in the "year" |
year.labels |
Logical flag indicating whether labels for each year of data should be plotted on the right. |
year.labels.left |
Logical flag indicating whether labels for each year of data should be plotted on the left. |
type |
plot type (as for |
col |
Colour |
continuous |
Should the colour scheme for years be continuous or discrete? |
polar |
Plot the graph on seasonal coordinates |
labelgap |
Distance between year labels and plotted lines |
... |
additional arguments to |
s |
seasonal frequency of x |
main |
Main title. |
xlab |
X-axis label. |
ylab |
Y-axis label. |
None.
Rob J Hyndman & Mitchell O'Hara-Wild
Hyndman and Athanasopoulos (2014) Forecasting: principles and practice, OTexts: Melbourne, Australia. http://www.otexts.org/fpp/
1 2 3 4 | ggseasonplot(AirPassengers, col=rainbow(12), year.labels=TRUE)
ggseasonplot(AirPassengers, year.labels=TRUE, continuous=TRUE)
seasonplot(AirPassengers, col=rainbow(12), year.labels=TRUE)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.