Skip to contents

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

Usage

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

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.

Value

A ggplot object.