R/plot.regAbcrf.R

Defines functions plot.regAbcrf

Documented in plot.regAbcrf

plot.regAbcrf <- function(x, n.var=min(30, length(x$model.rf$variable.importance)), xlim=NULL, main=NULL, ...){
  if (!inherits(x, "regAbcrf")) 
    stop("First argument not of class regAbcrf")
  if (!is.numeric(n.var))
    stop("n.var needs to be a numeric object")
  if (!is.null(xlim) && !is.numeric(xlim))
    stop("xlim needs to be a numeric object or NULL")
  variableImpPlot(x, n.var=n.var, xlim=xlim, main=main)
}

Try the abcrf package in your browser

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

abcrf documentation built on Aug. 9, 2022, 5:07 p.m.