Importance Heatmap
Plot heatmap of importance scores or ranks from a classification model
impHeatmap( rf, n = NULL, ranks = TRUE, plot = TRUE, xlab = NULL, ylab = NULL, scale = TRUE, alpha = 0.05 )
rf |
an object inheriting from |
n |
Plot |
ranks |
plot ranks instead of actual importance scores? |
plot |
print the plot? |
xlab, ylab |
labels for the x and y axes. |
scale |
For permutation based measures, should the measures be divided their "standard errors"? |
alpha |
a number specifying the critical alpha for identifying
predictors with importance scores significantly different from random.
This parameter is only relevant if |
rf
must be a classification model run with
importance = TRUE
.
the ggplot
object is invisibly returned.
Eric Archer eric.archer@noaa.gov
data(mtcars) # A randomForest model rf <- randomForest(factor(am) ~ ., mtcars, importance = TRUE) importance(rf) impHeatmap(rf, xlab = "Transmission", ylab = "Predictor") # An rfPermute model with significant predictors identified rp <- rfPermute(factor(am) ~ ., mtcars, nrep = 100, num.cores = 1) impHeatmap(rp, xlab = "Transmission", ylab = "Predictor")
Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.