importancePlot: Random Forest Variable Importance Plotting

Description Usage Arguments Examples

View source: R/importancePlot.R

Description

Random Forest Variable Importance Plotting

Usage

1
2
3
4
5
6
7
importancePlot(
  rf,
  sumtbl = NULL,
  data_def = NULL,
  type = c("acc", "gini"),
  ...
)

Arguments

rf

a randomForest object

type

the type of importance to plot "acc" for Mean Decrease Accuracy, and "gini for Mean Decrease Gini.

...

any items that can be passed to geom_point. Mostly used to control size and color of points.

Examples

1
2
3
4
5
require(wesanderson)
data(iris)
iris_rf<-randomForest(iris[,1:4],iris[,5],importance=T,proximity=T)
importancePlot(iris_rf,'acc',size=10,aes(colour=wes.palette(4, 'GrandBudapest')))
importancePlot(iris_rf,'gini',size=10,aes(colour=wes.palette(4, 'GrandBudapest')))

USEPA/LakeTrophicModelling documentation built on Oct. 15, 2020, 4:13 p.m.