plot_trend function

Trend Diagnostic Plot for an stlplus Object

Trend Diagnostic Plot for an stlplus Object

Plots the trend+remainder with the trend component overlaid, and the remainder component in a separate panel.

plot_trend(x, xlab = "Time", ylab = "Trend", span = 0.3, type = c("p", "l"), scales = list(y = list(relation = "free")), lwd = c(1, 1), col = c("darkgray", "black", "darkgray"), layout = c(1, 2), between = list(y = 0.5), strip = FALSE, strip.left = TRUE, as.table = TRUE, ...)

Arguments

  • x: object of class "stlplus".
  • xlab, ylab, span, type, scales, lwd, col, layout: parameters to be passed to xyplot.
  • between, strip, strip.left, as.table,: parameters to be passed to xyplot.

Returns

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

  • Maintainer: Ryan Hafen
  • License: BSD_3_clause + file LICENSE
  • Last published: 2016-01-06