Description Usage Arguments Value Author(s) See Also Examples
Dotchart of variable importance as measured by a Random Forest
1 2 3 | varImpPlot(x, sort=TRUE, n.var=min(30, nrow(x$importance)),
type=NULL, class=NULL, scale=TRUE,
main=deparse(substitute(x)), ...)
|
x |
An object of class |
sort |
Should the variables be sorted in decreasing order of importance? |
n.var |
How many variables to show? (Ignored if
|
type, class, scale |
arguments to be passed on to
|
main |
plot title. |
... |
Other graphical parameters to be passed on to
|
Invisibly, the importance of the variables that were plotted.
Andy Liaw andy\_liaw@merck.com
1 2 3 4 | set.seed(4543)
iris.rf <- randomForest(Species ~ ., data=iris, ntree=1000, keep.forest=FALSE,
importance=TRUE)
varImpPlot(iris.rf)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.