plot.light_breakdown: Visualize Variable Contribution Breakdown for Single Observation
Description
Minimal visualization of an object of class "light_breakdown" as waterfall plot.
The object returned is of class "ggplot" and can be further customized.
The waterfall plot is to be read from top to bottom.
The first line describes the (weighted) average prediction in the query data
used to start with. Then, each additional line shows how the prediction changes
due to the impact of the corresponding variable.
The last line finally shows the original prediction of the selected observation.
Multiple flashlights are shown in different facets.
Positive and negative impacts are visualized with different colors.