Package: marimekko 0.1.0

marimekko: Marimekko Plots for 'ggplot2'

Create marimekko (mosaic) plots as a 'ggplot2' layer. Column widths encode marginal proportions of one categorical variable and segment heights encode conditional proportions of a second categorical variable. Based on the mosaic display method by Hartigan and Kleiner (1981) <doi:10.1007/978-1-4613-9464-8_37>.

Authors:Dawid Kałędkowski [aut, cre]

marimekko_0.1.0.tar.gz
marimekko_0.1.0.zip(r-4.7)marimekko_0.1.0.zip(r-4.6)marimekko_0.1.0.zip(r-4.5)
marimekko_0.1.0.tgz(r-4.6-any)marimekko_0.1.0.tgz(r-4.5-any)
marimekko_0.1.0.tar.gz(r-4.7-any)marimekko_0.1.0.tar.gz(r-4.6-any)
marimekko_0.1.0.tgz(r-4.6-emscripten)
manual.pdf |manual.html
DESCRIPTION |NEWS
card.svg |card.png
marimekko/json (API)

# Install 'marimekko' in R:
install.packages('marimekko', repos = c('https://gogonzo.r-universe.dev', 'https://cloud.r-project.org'))

Bug tracker:https://github.com/gogonzo/marimekko/issues

On CRAN:

Conda:

5.26 score 6 stars 10 scripts 623 downloads 7 exports 17 dependencies

Last updated from:ac1cc96797. Checks:9 OK. Indexed: yes.

TargetResultTimeFilesSyslog
linux-devel-x86_64OK175
source / vignettesOK217
linux-release-x86_64OK148
macos-release-arm64OK102
macos-oldrel-arm64OK163
windows-develOK107
windows-releaseOK101
windows-oldrelOK98
wasm-releaseOK117

Exports:fortify_marimekkogeom_marimekkogeom_marimekko_labelgeom_marimekko_textmarimekko_palStatMarimekkoTilestheme_marimekko

Dependencies:clicpp11farverggplot2gluegtableisobandlabelinglifecycleR6RColorBrewerrlangS7scalesvctrsviridisLitewithr

Advanced features
Basic marimekko plot | Pearson residuals | Three-variable nested mosaic | Y-axis labels | Data extraction with fortify | Extending with custom ggplot2 layers | Extending with StatMarimekkoTiles | How it works | Example: bubble overlay | Example: residual markers | Example: rectangle outlines | StatMarimekkoTiles vs fortify_marimekko() | Combining layers | Independent x/y gaps | Colour palette | Plotly interactivity | In-aesthetic expressions | Namespace-qualified usage | Summary of parameters

Last update: 2026-03-16
Started: 2026-03-07

Getting started with marimekko
What is a marimekko plot? | Installation | Your first marimekko plot | Aesthetics | Gap control | Marginal percentages | Adding text labels | Theming | Faceting | Next steps

Last update: 2026-03-16
Started: 2026-03-07

Migrating from ggmosaic to marimekko
Why migrate? | Function mapping | Side-by-side examples | One dimensional — spine plot and bar chart | Two dimensional — mosaic plot and stacked bar chart | Three dimensional | Three variables — nested mosaic | Conditioning with conds | Faceting | Divider types and standardize | Offset / spacing | Text labels | Axis labels and percentages | HairEyeColor — a larger example | Key differences to be aware of | 1. No product() wrapper | 2. Automatic axis labels | 3. No divider argument | 4. inherit.aes defaults to TRUE | 5. Text labels need explicit label aesthetic | plotly support | Search-and-replace checklist | References

Last update: 2026-03-16
Started: 2026-03-07