plot.Boruta | R Documentation |
Default plot method for Boruta objects, showing boxplots of attribute importances over run.
## S3 method for class 'Boruta' plot( x, colCode = c("green", "yellow", "red", "blue"), sort = TRUE, whichShadow = c(TRUE, TRUE, TRUE), col = NULL, xlab = "Attributes", ylab = "Importance", ... )
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 |
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
.
If col
is given and sort
is TRUE
, the col
will be permuted, so that its order corresponds to attribute order in ImpHistory
.
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(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)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.