seasonplot

0th

Percentile

Seasonal plot

Plots a seasonal plot as described in Hyndman and Athanasopoulos (2012, chapter 2).

Keywords
ts
Usage
seasonplot(x, s, season.labels=NULL, year.labels=FALSE,
    year.labels.left=FALSE, type="o", main, ylab="",
    xlab=NULL, col=1, labelgap=0.1, ...)
Arguments
x
a numeric vector or time series.
s
seasonal frequency of x
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 plot)
main
Main title.
ylab
Y-axis label
xlab
X-axis label
col
Colour
labelgap
Distance between year labels and plotted lines
...
additional arguments to plot.
Value

  • None.

References

Hyndman and Athanasopoulos (2012) Forecasting: principles and practice, OTexts: Melbourne, Australia. http://otexts.com/fpp/

See Also

monthplot

Aliases
  • seasonplot
Examples
seasonplot(AirPassengers,col=rainbow(12),year.labels=TRUE)
Documentation reproduced from package forecast, version 5.3, License: GPL (>= 2)

Community examples

Looks like there are no examples yet.