View source: R/variableImpPlot.R
variableImpPlot | R Documentation |
variableImpPlot
provides a dotchart of variable importance as measured by ranger
with the argument importance='impurity'.
variableImpPlot(object, n.var=min(30, length(object$model.rf$variable.importance)), xlim=NULL, main=NULL)
object |
an |
n.var |
number of variables in the variable importance representation. |
xlim |
range of the abscissa. |
main |
an overall title for the variable importance plot. |
Invisibly, the importance of the variables that were plotted.
abcrf
,
plot.abcrf
,
plot.regAbcrf
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)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.