The hardware and bandwidth for this mirror is donated by dogado GmbH, the Webhosting and Full Service-Cloud Provider. Check out our Wordpress Tutorial.
If you wish to report a bug, or if you are interested in having us mirror your free-software or open-source project, please feel free to contact us at mirror[@]dogado.de.

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
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: ggmosaic2_0.5.1.zip, r-release: not available, r-oldrel: ggmosaic2_0.5.1.zip
macOS binaries: r-release (arm64): ggmosaic2_0.5.1.tgz, 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.

These binaries (installable software) and packages are in development.
They may not be fully stable and should be used with caution. We make no claims about them.
Health stats visible at Monitor.