varImpPlot(x, sort=TRUE, n.var=min(30, if(is.null(dim(x$importance))) length(x$importance) else nrow(x$importance)), class = NULL, scale=TRUE, xlab="Importance", ylab="", main=deparse(substitute(x)), ...)
randomForest
sort=FALSE
set.seed(4543) data(mtcars) mtcars.rf <- randomForest(mpg ~ ., data=mtcars, ntree=1000, keep=FALSE, importance=TRUE) varImpPlot(mtcars.rf)
Run the code above in your browser using DataLab