| plot.selection | R Documentation |
Draws the score every variable obtained, the ones that were kept apart from the ones that
were not. Only a selection made by ranking the variables (algorithm = "ranking") can
be drawn this way: it is the only one that scores them one by one, where the other three
score whole subsets.
## S3 method for class 'selection'
plot(x, horiz = TRUE, legendpos = "bottomright", ...)
x |
The selection (object of class |
horiz |
Whether the bars are drawn horizontally, which leaves room for long variable names. |
legendpos |
Position of the legend. |
... |
Other parameters, passed to |
selectfeatures, selection-class,
print.selection
require (datasets)
data (iris)
# How useful a random forest finds each variable, and the two it would keep
selection = selectfeatures (iris [, -5], iris [, 5], unieval = "randomforest", uninb = 2)
selection
plot (selection)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.