R/print_importance_plot.R

Defines functions print.importance_plot

Documented in print.importance_plot

# Copyright 2021 Robert Carnell

#' print data in an \code{importance_plot}
#'
#' @param x the object to be printed
#' @param ... further arguments passed to \code{print.data.frame}
#'
#' @export
#'
#' @examples
#' gtest <- glm(vs ~ wt + disp + gear, data=mtcars, family=binomial(link="logit"))
#' gtestreduced <- glm(vs ~ 1, data=mtcars, family=binomial(link="logit"))
#' g <- importance(gtest, gtestreduced)
#' print(g)
print.importance_plot <- function(x, ...)
{
  cat(paste("Importance Plot using model of type", x$type, "\n"))
  print(x$data)
}
bertcarnell/tornado documentation built on Aug. 6, 2024, 10:17 p.m.