Plotting white box models.
# S3 method for live_explainer plot(x, type = "waterfall", ...)
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. |
plot (ggplot2 or base)
# NOT RUN { # Forest plot for regression plot(fitted_explanation1, type = "forest") # Waterfall plot plot(fitted_explanation1, type = "waterfall") # Plot decision tree plot(fitted_explanation2) # }