variableImpPlot: Variable importance plot from a random forest

Description Usage Arguments Value See Also Examples

View source: R/variableImpPlot.R

Description

variableImpPlot provides a dotchart of variable importance as measured by ranger with the argument importance='impurity'.

Usage

1
2
3
variableImpPlot(object, 
n.var=min(30, length(object$model.rf$variable.importance)),
xlim=NULL, main=NULL)

Arguments

object

an abcrf or regAbcrf object.

n.var

number of variables in the variable importance representation.

xlim

range of the abscissa.

main

an overall title for the variable importance plot.

Value

Invisibly, the importance of the variables that were plotted.

See Also

abcrf, plot.abcrf, plot.regAbcrf

Examples

1
2
3
4
5
6
data(snp)
modindex <- snp$modindex[1:500]
sumsta <- snp$sumsta[1:500,]
data1 <- data.frame(modindex, sumsta)
model.rf <- abcrf(modindex~., data1, ntree=100)
variableImpPlot(model.rf)

Example output



abcrf documentation built on Nov. 5, 2019, 5:06 p.m.

Related to variableImpPlot in abcrf...