plot_importance_rankings: Plot importance measures rankings with ggpairs

View source: R/measure_importance.R

plot_importance_rankingsR Documentation

Plot importance measures rankings with ggpairs

Description

Plot against each other rankings of variables according to various measures of importance

Usage

plot_importance_rankings(
  importance_frame,
  measures = NULL,
  main = "Relations between rankings according to different measures"
)

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

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


ModelOriented/randomForestExplainer documentation built on March 23, 2024, 10:31 p.m.