Learn R Programming

stlplus (version 0.5.1)

plot_seasonal: Seasonal Diagnostic Plot for an stlplus Object

Description

Plots each cycle-subseries of the detrended data (or equivalently, seasonal plus remainder), with the mean subtracted. The fitted seasonal component is plotted as a line through the points.

Usage

plot_seasonal(x, col = c("darkgray", "black"), lwd = 2, xlab = "Time", ylab = "Centered Seasonal + Remainder", ...)

Arguments

x
object of class "stlplus".
col, lwd, xlab, ylab, ...
parameters to be passed to xyplot().

Value

object of class "trellis".

Details

Helps decide how much of the variation in the data other than the trend should go into the seasonal component, and how much in the remainder.

References

R. B. Cleveland, W. S. Cleveland, J. E. McRae, and I. Terpenning (1990) STL: A Seasonal-Trend Decomposition Procedure Based on Loess. Journal of Official Statistics, 6, 3--73.

See Also

stlplus