R/plotmethods.R

Defines functions plot.hpfilter plot.hfilter

Documented in plot.hfilter plot.hpfilter

#' @describeIn hfilter plot method
#' @param ... arguments passed to \code{plot.ts}
#' @export

plot.hfilter <- function(x, ...) {
  plot(with(x, cbind(total, cycle, trend)),
       main="Separated cycle and trend", ...)
}


#' @describeIn hpfilter plot method
#' @param ... arguments passed to \code{plot.ts}
#' @export

plot.hpfilter <- function(x, ...) {
  plot(with(x, cbind(total, cycle, trend)),
       main="Separated cycle and trend", ...)
}
saviviro/tsfilters documentation built on July 16, 2025, 6:16 p.m.