ggmosaic2: Mosaic Plots in the 'ggplot2' Framework, Extended

Mosaic plots in the 'ggplot2' framework. Mosaic plot functionality is provided in a single 'ggplot2' layer by calling the geom 'mosaic'. This extends the now-defunct 'ggmosaic' package by allowing fitted loglinear models which can be used to show patterns of association among variables in frequency tables.

Version: 0.5.1
Depends: ggplot2 (≥ 4.0.0), R (≥ 4.1.0)
Imports: productplots, dplyr, plotly (≥ 4.9.3), purrr, rlang, tidyr, ggrepel, scales, withr (≥ 2.5.0)
Suggests: gridExtra, knitr, rmarkdown, shiny (≥ 1.1.0), patchwork, vcdExtra
Published: 2026-09-16
DOI: 10.32614/CRAN.package.ggmosaic2 (may not be active yet)
Author: Michael Friendly ORCID iD [aut, cre, cph], Gavin Klorfine ORCID iD [aut], Haley Jeppson ORCID iD [aut], Heike Hofmann ORCID iD [aut], Di Cook ORCID iD [aut], Hadley Wickham ORCID iD [ctb]
Maintainer: Michael Friendly <friendly at yorku.ca>
BugReports: https://github.com/friendly/ggmosaic2/issues
License: GPL-2 | GPL-3 [expanded from: GPL (≥ 2)]
URL: https://friendly.github.io/ggmosaic2/, https://github.com/friendly/ggmosaic2
NeedsCompilation: no
Language: en-US
Citation: ggmosaic2 citation info
Materials: README, NEWS
CRAN checks: ggmosaic2 results

Documentation:

Reference manual: ggmosaic2.html , ggmosaic2.pdf
Vignettes: Three Forms of Frequency Tables for Mosaic Displays (source, R code)
Mosaic plots with 'ggplot2' (source, R code)
Introducing ggmosaic2: an enhanced ggmosaic (source, R code)
ggmosaic and Loglinear Models (source, R code)

Downloads:

Package source: ggmosaic2_0.5.1.tar.gz
Windows binaries: r-devel: not available, r-release: not available, r-oldrel: not available
macOS binaries: r-release (arm64): not available, r-oldrel (arm64): ggmosaic2_0.5.1.tgz, r-release (x86_64): ggmosaic2_0.5.1.tgz, r-oldrel (x86_64): ggmosaic2_0.5.1.tgz

Linking:

Please use the canonical form https://CRAN.R-project.org/package=ggmosaic2 to link to this page.