Learn R Programming

ggRandomForests (version 4.0.0)

shap_importance: SHAP global importance bar chart

Description

Bar chart of mean absolute SHAP value per variable, the SHAP analog of plot.gg_vimp.

Usage

shap_importance(x, labels = NULL, ...)

Value

A ggplot object.

Arguments

x

A gg_shap object.

labels

Optional variable labels. One of: a named character vector (c(Temp = "Temperature")); a labelled data frame, whose attr(col, "label") values are read; or a two-column key/label data frame. Variables with no label keep their raw name. Defaults to NULL (raw names).

...

Unused.

See Also

gg_shap plot.gg_shap