data(mtcars)
# A classification model classifying cars to manual or automatic transmission
am.rp <- rfPermute(factor(am) ~ ., mtcars, ntree = 100, nrep = 50)
imp.scaled <- importance(am.rp, scale = TRUE)
imp.scaled
# plot scaled importance scores
plotImportance(am.rp, scale = TRUE)
# plot unscaled and only significant scores
plotImportance(am.rp, scale = FALSE, sig.only = TRUE)
Run the code above in your browser using DataLab