plot.cycle: Cycle-Subseries Plot for an stl2 Object

Description Usage Arguments Value Author(s) References See Also

Description

Plots the seasonal component by cycle-subseries, with lines emanating from the midmean of the values within each cycle-subseries.

Usage

1
2
3
4
5
plot.cycle(x, layout=c(x$pars$n.p, 1), col="#0080ff", 
   xlab="Time", ylab="Seasonal", 
   panel = function(x, y, ...) {
      panel.segments(x, rep(.midmean(y), length(x)), x, y, col=col)
   }, ...)

Arguments

x

object of class "stl2".

layout, col, xlab, ylab, panel, ...

parameters to be passed to xyplot().

Value

object of class "trellis".

Author(s)

Ryan Hafen

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

stl2


hafen/stl2 documentation built on May 17, 2019, 2:23 p.m.