Learn R Programming

Boruta (version 5.2.0)

plot.Boruta: Plot Boruta object

Description

Default plot method for Boruta objects, showing boxplots of attribute importances over run.

Usage

"plot"(x, colCode = c("green", "yellow", "red", "blue"), sort = TRUE, whichShadow = c(TRUE, TRUE, TRUE), col = NULL, xlab = "Attributes", 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.
sort
controls whether boxplots should be ordered, or left in original order.
whichShadow
a logical vector controlling which shadows should be drawn; switches respectively max shadow, mean shadow and min shadow.
col
standard col attribute. If given, suppresses effects of colCode.
xlab
X axis label that will be passed to boxplot.
ylab
Y axis label that will be passed to boxplot.
...
additional graphical parameter that will be passed to boxplot.

Value

Invisible copy of x.

Examples

Run this code
## Not run: 
# library(mlbench); data(HouseVotes84);
# na.omit(HouseVotes84)->hvo;
# #Takes some time, so be patient
# Boruta(Class~.,data=hvo,doTrace=2)->Bor.hvo;
# print(Bor.hvo);
# plot(Bor.hvo);
# ## End(Not run)

Run the code above in your browser using DataLab