Learn R Programming

splinetree (version 0.2.0)

plotImp: Create a barplot of relative variable importance scores.

Description

Given a named vector of variable importance measures, this function makes a barplot of the relative importances. The importances are scaled to sum to 1. An appropriate input is one column of the output from varImpY() or varImpCoeff().

Usage

plotImp(importance_vector, ...)

Arguments

importance_vector

a named vector where the names are the variables and the vector stores the importances.

...

additional arguments to plot, such as "main", "cex", etc.

Examples

Run this code
# NOT RUN {
imp <- varImpCoeff(forest)[,3]
plotImp(imp, main="Standardized Variable Importance")
# }

Run the code above in your browser using DataLab