| 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_featuresmaximal number of features to be included in the plot. default value is10min_maxa 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_contributionsifTRUE, variable contributions will be added to the plot.shift_contributionsnumber describing how much labels should be shifted to the right, as a fraction of range. By default equal to0.05.vcolorsIfNA(default), DrWhy colors are used.vnamesa character vector, if specified then will be used as labels on OY axis. By defaultNULL.digitsnumber of decimal places (round) or significant digits (signif) to be used.rounding_functiona function to be used for rounding numbers.plot_distributionsifTRUEthen distributions of conditional propotions will be plotted. This requireskeep_distributions=TRUEin thebreak_down,local_attributions, orlocal_interactions.baselineif numeric then veritical line starts inbaseline.titlea character. Plot title. By default"Break Down profile".subtitlea 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_varsalias for themax_featuresparameter.
shap
show_boxplotslogical ifTRUE(default) boxplot will be plotted to show uncertanity of attributions.vcolorsIfNA(default), DrWhy colors are used.max_featuresmaximal number of features to be included in the plot. default value is10max_varsalias for themax_featuresparameter.
oscillations
bar_widthwidth of bars. By default10