R/plot.hero_numeric.R

Defines functions plot.hero_numeric

Documented in plot.hero_numeric

#' @rdname plot.hero
#' @param type The plot type (when \code{x} is of subclass
#' \code{hero_numeric}).  Default is \code{type = "l"}.
#' @method plot hero_numeric
#' @export
plot.hero_numeric = function(x, xlab = "", ylab = "",
                             type = "l", ...) {
  graphics::plot(x = x$x, y = x$fitted,
                 xlab = xlab, ylab = ylab,
                 type = type, ...)
}

Try the hero package in your browser

Any scripts or data that you put into this service are public.

hero documentation built on July 26, 2023, 5:11 p.m.