Plot glex Variable Importances
Usage
# S3 method for class 'glex_vi'
plot(
x,
by_degree = FALSE,
threshold = NULL,
max_interaction = NULL,
scale = "absolute",
...
)Arguments
- x
Object of class
glex_vi, seeglex_vi().- by_degree
(
logical(1): FALSE) Optionally sum values by degree of interaction, resulting in one contribution score for all main effects, all second-order interactions, etc.- threshold
(
numeric(1): NULL) Terms with an importance score at or below this are aggregated under a"Remaining terms"label. Refers to the chosenscale(and themeasureof theglex_vi()object). The defaultNULLuses 2.5% of the largest score (per class for multiclass objects), so negligible terms do not crowd the plot, and0withby_degree = TRUE. Set0to show all terms.- max_interaction
(
integer(1): NULL) Optionally filter plot to show terms up to the specified degree of interaction. Similar tothreshold, all other terms will be aggregated under a"Remaining terms"label.- scale
(
"absolute") Plotm(default) orm_rel("relative") ofglex_vi(): for its defaultmeasure = "mean_abs", the average absolute contributions or the same value scaled by the average prediction; for"variance", the mean square or its share of the variance of the prediction; for"share", the pruning's share either way.- ...
(Unused)
Value
A ggplot object.
See also
Other Visualization functions:
plot.glex(),
plot_force(),
plot_pdp(),
plot_shap_decomposition(),
plot_waterfall()

