plot_imp: Plot variable importance from random forests

Description Usage Arguments Value Examples

Description

Plot variable importance from random forests

Usage

1
plot_imp(imp, sort = "decreasing")

Arguments

imp

object of class c("importance", "data.frame") as returned by variable_importance

sort

character indicating if sorting of the output is to be done. can be "ascending", or "descending."

Value

a ggplot2 object

Examples

1
2
3
4
5
library(randomForest)
data(iris)
fit = randomForest(Species ~ ., iris)
imp = variable_importance(fit, nperm = 2, data = iris)
plot_imp(imp)

edarf documentation built on May 2, 2019, 2:39 a.m.