DEPRECATED. Please refer to the generic plot function.

plot_explanation2(explained_model, regr_plot_type = NULL)

Arguments

explained_model

List returned by fit_explanation function.

regr_plot_type

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

Value

plot (ggplot2 or base)

Examples

# NOT RUN {
# Forest plot for regression
plot_explanation(fitted_explanation1, "forest", wine[5, ])
# Waterfall plot
plot_explanation(fitted_explanation1, "waterfall", wine[5, ])
# Plot decision tree
plot_explanation(fitted_explanation2)
# }