Package: mosaicresid 0.1.1
mosaicresid: Residual-Shaded Mosaic Plots for 'ggplot2'
A 'ggplot2'-native alternative to the shaded mosaic plots drawn by mosaicplot() in base 'R'. geom_mosaic_resid() maps two categorical variables with ordinary 'ggplot2' aesthetics, recursively partitions the unit square into tiles sized by their joint proportions, computes Pearson, deviance, or Freeman-Tukey residuals against a two-way independence model, and maps the residuals to fill color. It works on raw data, already aggregated counts, or contingency tables, and the tile geometry and residuals are also returned as a data frame by compute_mosaic_residuals().
Authors:
mosaicresid_0.1.1.tar.gz
mosaicresid_0.1.1.zip(r-4.7-any)mosaicresid_0.1.1.zip(r-4.6-any)
mosaicresid_0.1.1.tar.gz(r-4.7-any)mosaicresid_0.1.1.tar.gz(r-4.6-any)
mosaicresid_0.1.1.tgz(r-4.6-emscripten)
manual.pdf |manual.html✨
DESCRIPTION
card.svg |card.png
mosaicresid/json (API)
| # Install 'mosaicresid' in R: |
| install.packages('mosaicresid', repos = c('https://cran.r-universe.dev', 'https://cloud.r-project.org')) |
Bug tracker:https://github.com/sbutler22/geom_mosaic/issues
Last updated from:2072620d17. Checks:6 OK. Indexed: yes.
| Target | Result | Time | Files | Syslog |
|---|---|---|---|---|
| linux-devel | OK | 139 | ||
| source / vignettes | OK | 195 | ||
| linux-release | OK | 140 | ||
| windows-devel | OK | 73 | ||
| windows-release | OK | 77 | ||
| wasm-release | OK | 113 |
Exports:compute_mosaic_residualsgeom_mosaic_residscale_fill_mosaic_residualstat_mosaic_labelstat_mosaic_residualStatMosaicLabelStatMosaicResidualto_long_counts
Dependencies:clicpp11dplyrfarvergenericsggplot2gluegtableisobandlabelinglifecyclemagrittrpillarpkgconfigpurrrR6RColorBrewerrlangS7scalestibbletidyselectutf8vctrsviridisLitewithr
Last update: 2026-11-20
Started: 2026-11-20
Last update: 2026-11-20
Started: 2026-11-20
Readme and manuals
Help Manual
| Help page | Topics |
|---|---|
| Compute mosaic tile geometry and independence residuals | compute_mosaic_residuals |
| Fortify a table object for ggplot2 | fortify.table |
| Residual-shaded mosaic plot | geom_mosaic_resid |
| Add mosaicresid layers to a plot (ggplot2 < 4.0 entry point) | ggplot_add.mosaicresid_layers |
| Default diverging fill scale for mosaic residuals | scale_fill_mosaic_residual |
| Compute in-tile mosaic labels as a ggplot2 stat | stat_mosaic_label |
| Compute mosaic tiles and independence residuals as a ggplot2 stat | stat_mosaic_residual |
| StatMosaicLabel | StatMosaicLabel |
| StatMosaicResidual | StatMosaicResidual |
| Convert raw or pre-aggregated data into long-format counts | to_long_counts |
