R/overall.importance.plot.R

`overall.importance.plot` <-
function (obj, ..., las = 1, cex.axis = 0.7, cex.names = cex.axis, horiz = TRUE)
{
    imp.a <- importance(obj,"Accuracy")
    imp.w <- importance(obj,"Weighted")
    o.a <- order(imp.a)
    o.w <- order(imp.w)
    barplot(imp.a[o.a], names = names(imp.a[o.a]),
        horiz = horiz, main = "Accuracy importance",
        las = las, cex.axis = cex.axis, cex.names = cex.names, ...)
    barplot(imp.w[o.w], names = names(imp.w[o.w]),
        horiz = horiz, las = 1, main = expression(paste(R^2, " weighted importance")),
        las = las, cex.axis = cex.axis, cex.names = cex.names, ...)
}

Try the gradientForest package in your browser

Any scripts or data that you put into this service are public.

gradientForest documentation built on Aug. 24, 2023, 3:03 p.m.