Description Usage Arguments Examples
View source: R/importancePlot.R
Random Forest Variable Importance Plotting
1 2 3 4 5 6 7 |
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. |
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')))
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.