Waterfall plot or forestplot for lm/glm explanations.

plot_regression2(plot_type, fitted_model, explained_instance, classif)

Arguments

plot_type

Chr, "forest" or "waterfall" depending on which type of plot is to be created.

fitted_model

glm or lm object.

explained_instance

Observation around which model was fitted.

classif

logical, if TRUE, probabilities will be plotted

Value

plot (ggplot2 or lattice)