shapviz: SHAP Visualizations

Visualizations for SHAP (SHapley Additive exPlanations), such as waterfall plots, force plots, various types of importance plots, and dependence plots. These plots act on a 'shapviz' object created from a matrix of SHAP values and a corresponding feature dataset. Wrappers for the R packages 'xgboost', 'lightgbm', 'fastshap', and 'treeshap' are added for convenience. By separating visualization and computation, it is possible to display factor variables in graphs, even if the SHAP values are calculated by a model that requires numerical features. The plots are inspired by those provided by the 'shap' package in Python, but there is no dependency on it.

Version: 0.1.0
Depends: R (≥ 3.6.0)
Imports: ggbeeswarm, ggfittext (≥ 0.8.0), gggenes, ggplot2 (≥ 3.0.0), ggrepel, grid, rlang (≥ 0.3.0), stats, utils, xgboost
Suggests: knitr, rmarkdown, testthat (≥ 3.0.0)
Published: 2022-06-10
Author: Michael Mayer [aut, cre]
Maintainer: Michael Mayer <mayermichael79 at>
License: GPL-2 | GPL-3 [expanded from: GPL (≥ 2)]
NeedsCompilation: no
Materials: README NEWS
CRAN checks: shapviz results


Reference manual: shapviz.pdf
Vignettes: Using 'shapviz'


Package source: shapviz_0.1.0.tar.gz
Windows binaries: r-devel:, r-release:, r-oldrel:
macOS binaries: r-release (arm64): shapviz_0.1.0.tgz, r-oldrel (arm64): shapviz_0.1.0.tgz, r-release (x86_64): shapviz_0.1.0.tgz, r-oldrel (x86_64): shapviz_0.1.0.tgz


Please use the canonical form to link to this page.