Learn R Programming

DALEX (version 2.4.2)

plot.model_parts: Plot Variable Importance Explanations

Description

Plot Variable Importance Explanations

Usage

# S3 method for model_parts
plot(x, ...)

Value

An object of the class ggplot.

Arguments

x

an object of the class model_parts

...

other parameters described below

Plot options

variable_importance

  • max_vars maximal number of features to be included in the plot. default value is 10

  • show_boxplots logical if TRUE (default) boxplot will be plotted to show permutation data.

  • bar_width width of bars. By default 10

  • desc_sorting logical. Should the bars be sorted descending? By default TRUE

  • title the plot's title, by default 'Feature Importance'

  • subtitle a character. Plot subtitle. By default NULL - then subtitle is set to "created for the XXX, YYY model", where XXX, YYY are labels of given explainers.