plot.live_explainer: Plotting white box models.

Description Usage Arguments Value Examples

View source: R/plot.R

Description

Plotting white box models.

Usage

1
2
## S3 method for class 'live_explainer'
plot(x, type = "waterfall", ...)

Arguments

x

List returned by fit_explanation function.

type

Chr, "forest" or "waterfall" depending on which type of plot is to be created. if lm/glm model is used as interpretable approximation.

...

Additional parameters that will be passed to plot.broken or plot method. In particular, when number of features is large, top_features argument can be set in plot.broken.

Value

plot (ggplot2 or base)

Examples

1
2
3
4
5
6
7
8
9
## Not run: 
# Forest plot for regression
plot(fitted_explanation1, type = "forest")
# Waterfall plot
plot(fitted_explanation1, type = "waterfall")
# Plot decision tree
plot(fitted_explanation2)

## End(Not run)

MI2DataLab/live documentation built on Aug. 21, 2019, 6:05 p.m.