plot_importance_ggpairs: Plot importance measures with ggpairs

Description Usage Arguments Value Examples

View source: R/measure_importance.R

Description

Plot selected measures of importance of variables in a forest using ggpairs

Usage

1
2
3
4
5
plot_importance_ggpairs(
  importance_frame,
  measures = NULL,
  main = "Relations between measures of importance"
)

Arguments

importance_frame

A result of using the function measure_importance() to a random forest or a randomForest object

measures

A character vector specifying the measures of importance to be used

main

A string to be used as title of the plot

Value

A ggplot object

Examples

1
2
3
forest <- randomForest::randomForest(Species ~ ., data = iris, localImp = TRUE, ntree = 200)
frame <- measure_importance(forest, measures = c("mean_min_depth", "times_a_root"))
plot_importance_ggpairs(frame, measures = c("mean_min_depth", "times_a_root"))

randomForestExplainer documentation built on July 12, 2020, 1:06 a.m.