plot_cycle: Cycle-Subseries Plot for an stlplus Object

Description Usage Arguments Value 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
plot_cycle(x, layout = c(x$pars$n.p, 1), col = "#0080ff", xlab = "Time",
  ylab = "Seasonal", panel = function(x, y, ...) {    
  lattice::panel.segments(x, rep(.midmean(y), length(x)), x, y, col = col) },
  ...)

Arguments

x

object of class "stlplus".

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

parameters to be passed to xyplot().

Value

object of class "trellis".

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


stlplus documentation built on May 2, 2019, 6:10 a.m.