powered by
Dotchart of variable importance as measured by a Random Forest
varImpPlot(x, sort=TRUE, n.var=min(30, nrow(x$importance)), type=NULL, class=NULL, scale=TRUE, main=deparse(substitute(x)), ...)
An object of class randomForest.
randomForest
Should the variables be sorted in decreasing order of importance?
How many variables to show? (Ignored if sort=FALSE.)
sort=FALSE
arguments to be passed on to importance
importance
plot title.
Other graphical parameters to be passed on to dotchart.
dotchart
Invisibly, the importance of the variables that were plotted.
randomForest, importance
# NOT RUN { set.seed(4543) data(iris) iris.rf <- randomForest(Species ~ ., data=iris, importance=TRUE) varImpPlot(iris.rf) # }
Run the code above in your browser using DataLab