plotImpHistory | R Documentation |
Alternative plot method for Boruta objects, showing matplot of attribute importances over run.
plotImpHistory( x, colCode = c("green", "yellow", "red", "blue"), col = NULL, type = "l", lty = 1, pch = 0, xlab = "Classifier run", ylab = "Importance", ... )
x |
an object of a class Boruta. |
colCode |
a vector containing colour codes for attribute decisions, respectively Confirmed, Tentative, Rejected and shadow. |
col |
standard |
type |
Plot type that will be passed to |
lty |
Line type that will be passed to |
pch |
Point mark type that will be passed to |
xlab |
X axis label that will be passed to |
ylab |
Y axis label that will be passed to |
... |
additional graphical parameter that will be passed to |
Invisible copy of x
.
This function will throw an error when x
lacks importance history, i.e., was made with holdHistory
set to FALSE
.
## 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)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.