Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

plotImpHistory

Plot Boruta object as importance history


Description

Alternative plot method for Boruta objects, showing matplot of attribute importances over run.

Usage

plotImpHistory(
  x,
  colCode = c("green", "yellow", "red", "blue"),
  col = NULL,
  type = "l",
  lty = 1,
  pch = 0,
  xlab = "Classifier run",
  ylab = "Importance",
  ...
)

Arguments

x

an object of a class Boruta.

colCode

a vector containing colour codes for attribute decisions, respectively Confirmed, Tentative, Rejected and shadow.

col

standard col attribute, passed to matplot. If given, suppresses effects of colCode.

type

Plot type that will be passed to matplot.

lty

Line type that will be passed to matplot.

pch

Point mark type that will be passed to matplot.

xlab

X axis label that will be passed to matplot.

ylab

Y axis label that will be passed to matplot.

...

additional graphical parameter that will be passed to matplot.

Value

Invisible copy of x.

Note

This function will throw an error when x lacks importance history, i.e., was made with holdHistory set to FALSE.

Examples

## Not run: 
library(mlbench); data(Sonar)
#Takes some time, so be patient
Boruta(Class~.,data=Sonar,doTrace=2)->Bor.son
print(Bor.son)
plotImpHistory(Bor.son)

## End(Not run)

Boruta

Wrapper Algorithm for All Relevant Feature Selection

v7.0.0
GPL (>= 2)
Authors
Miron Bartosz Kursa [aut, cre] (<https://orcid.org/0000-0001-7672-648X>), Witold Remigiusz Rudnicki [aut]
Initial release

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.