Package: mirrorslope 0.2.1
mirrorslope: Mirror Slope Plots for Two-Arm Clinical Trial Data
Creates mirrored slope plots comparing two treatment arms over a single observation interval. Both arms share a common x-axis and converge at a central endpoint, making the between-arm gap the primary visual quantity. Returns standard 'ggplot2' objects for full extensibility. The display was designed by Kati Maharry and is described in Maharry and Sullivan (2026, manuscript in preparation); it was first used in the supplementary appendix of McDonald and colleagues (2026) <doi:10.1016/S0140-6736(26)01385-1>.
Authors:
mirrorslope_0.2.1.tar.gz
mirrorslope_0.2.1.zip(r-4.7-any)mirrorslope_0.2.1.zip(r-4.6-any)mirrorslope_0.2.1.zip(r-4.5-any)
mirrorslope_0.2.1.tgz(r-4.6-any)mirrorslope_0.2.1.tgz(r-4.5-any)
mirrorslope_0.2.1.tar.gz(r-4.7-any)mirrorslope_0.2.1.tar.gz(r-4.6-any)
mirrorslope_0.2.1.tgz(r-4.6-emscripten)
manual.pdf |manual.html✨
DESCRIPTION |NEWS
card.svg |card.png
mirrorslope/json (API)
| # Install 'mirrorslope' in R: |
| install.packages('mirrorslope', repos = c('https://sullivanstatistics.r-universe.dev', 'https://cloud.r-project.org')) |
Bug tracker:https://github.com/sullivanstatistics/mirrorslope/issues
Last updated from:991729b051. Checks:9 OK. Indexed: yes.
| Target | Result | Time | Files | Syslog |
|---|---|---|---|---|
| linux-devel | OK | 130 | ||
| source / vignettes | OK | 226 | ||
| linux-release | OK | 126 | ||
| macos-release | OK | 151 | ||
| macos-oldrel | OK | 271 | ||
| windows-devel | OK | 86 | ||
| windows-release | OK | 81 | ||
| windows-oldrel | OK | 75 | ||
| wasm-release | OK | 100 |
Exports:add_differenceadd_precisionadd_summarymirror_palettemirror_slope_plotprep_mirror_datatheme_mirror
Dependencies:clicpp11farverggplot2gluegtableisobandlabelinglifecycleR6RColorBrewerrlangS7scalesvctrsviridisLitewithr
Last update: 2026-10-16
Started: 2026-10-16
Last update: 2026-10-16
Started: 2026-10-16
Last update: 2026-10-16
Started: 2026-10-16
Readme and manuals
Help Manual
| Help page | Topics |
|---|---|
| Attach the between-arm difference to a mirror_data object | add_difference |
| Attach per-arm precision (SE or CI) to a mirror_data object | add_precision |
| Attach group-level summary estimates to a mirror_data object | add_summary |
| Coerce a mirror_data object to a plain data frame | as.data.frame.mirror_data |
| Color palettes for mirror slope plots | mirror_palette |
| Render a mirror slope plot | mirror_slope_plot |
| Prepare analysis data for a mirror slope plot | prep_mirror_data |
| Print a mirror_data object | print.mirror_data |
| Summarize a mirror_data object | summary.mirror_data |
| A publication theme for mirror slope plots | theme_mirror |
