plot.predict_parts {DALEX} | R Documentation |
Plot Variable Attribution Explanations
Description
Plot Variable Attribution Explanations
Usage
## S3 method for class 'predict_parts'
plot(x, ...)
Arguments
x |
an object of the class |
... |
other parameters described below |
Value
An object of the class ggplot
.
Plot options
break_down
max_features
maximal number of features to be included in the plot. default value is10
min_max
a range of OX axis. By defaultNA
, therefore it will be extracted from the contributions ofx
. But it can be set to some constants, useful if these plots are to be used for comparisons.add_contributions
ifTRUE
, variable contributions will be added to the plot.shift_contributions
number describing how much labels should be shifted to the right, as a fraction of range. By default equal to0.05
.vcolors
IfNA
(default), DrWhy colors are used.vnames
a character vector, if specified then will be used as labels on OY axis. By defaultNULL
.digits
number of decimal places (round
) or significant digits (signif
) to be used.rounding_function
a function to be used for rounding numbers.plot_distributions
ifTRUE
then distributions of conditional propotions will be plotted. This requireskeep_distributions=TRUE
in thebreak_down
,local_attributions
, orlocal_interactions
.baseline
if numeric then veritical line starts inbaseline
.title
a character. Plot title. By default"Break Down profile"
.subtitle
a character. Plot subtitle. By defaultNULL
- then subtitle is set to "created for the XXX, YYY model", where XXX, YYY are labels of given explainers.max_vars
alias for themax_features
parameter.
shap
show_boxplots
logical ifTRUE
(default) boxplot will be plotted to show uncertanity of attributions.vcolors
IfNA
(default), DrWhy colors are used.max_features
maximal number of features to be included in the plot. default value is10
max_vars
alias for themax_features
parameter.
oscillations
bar_width
width of bars. By default10