Provides tools for decomposing differences in rate metrics
between two groups into contributions from individual subgroups and
visualizing them as a "Theseus Plot". Inspired by the story of the
Ship of Theseus, the method replaces subgroup data from one group with
that of another step by step, recalculating the overall metric at each
stage to quantify subgroup contributions. A Theseus Plot combines the
stepwise progression of a waterfall plot with the comparative bars of
a bar chart, offering an intuitive way to understand subgroup-level
effects.
| Version: |
0.2.0 |
| Depends: |
R (≥ 4.1.0) |
| Imports: |
dplyr, forcats, ggplot2, memoise, R6, rlang, stats, stringr, tibble, tidyr, waterfalls |
| Suggests: |
knitr, nycflights13, rmarkdown, testthat (≥ 3.0.0) |
| Published: |
2026-04-09 |
| DOI: |
10.32614/CRAN.package.TheseusPlot |
| Author: |
Koji Makiyama [aut, cre, cph],
Kazuyuki Sano [ctb, wdc],
Shinichi Takayanagi [med],
Daisuke Ichikawa [exp],
LY Corporation Analytics Solution Enhancement Team [spn] |
| Maintainer: |
Koji Makiyama <hoxo.smile at gmail.com> |
| BugReports: |
https://github.com/hoxo-m/TheseusPlot/issues |
| License: |
MIT + file LICENSE |
| URL: |
https://github.com/hoxo-m/TheseusPlot,
https://hoxo-m.github.io/TheseusPlot/ |
| NeedsCompilation: |
no |
| Materials: |
README, NEWS |
| CRAN checks: |
TheseusPlot results |