ggVarImp.Rd
Plots the importance of the covariates of a supervised learning model in a dot plot.
ggVarImp(importance, sort=TRUE, xlabel="Importance", ylabel="Variable", main="")
numeric vector. The vector of the importances of the covariates. Should be a named vector.
logical. Whether the vector of importances should be sorted or not. Default is TRUE.
character. Title of the x axis.
character. Title of the y axis.
character. Title of the plot.
varImp
,varImpAUC
,fastvarImp
,fastvarImpAUC
data(iris)
iris2 = iris
iris2$Species = factor(iris$Species == "versicolor")
iris.cf = party::cforest(Species ~ ., data = iris2,
control = party::cforest_unbiased(mtry = 2, ntree = 50))
imp <- fastvarImpAUC(object = iris.cf, parallel = FALSE)
ggVarImp(imp)