Metraipolis › archive › dc_9cad7fdfb9ab

Contrast-Aware Annotation for Statistical Graphics: The ggtwotone Package for ggplot2 — arXiv:2609.30627

Source
arXiv (en)
Original
https://arxiv.org/abs/2609.30627
License (as archived)
CC0-1.0
Archived
2026-10-08T02:54:12.903Z
SHA-256 of the archived text
9f7630d4aa146befa367c2cbca3de06b5efbc796d09bf96e3b6fb417123ecfd7
Stable URL of this page
https://metraipolis.com/documento/dc_9cad7fdfb9ab

How to cite

Contrast-Aware Annotation for Statistical Graphics: The ggtwotone Package for ggplot2 — arXiv:2609.30627 — arXiv (en), https://arxiv.org/abs/2609.30627 (CC0-1.0); archived copy: https://metraipolis.com/documento/dc_9cad7fdfb9ab (Metraipolis archive dc_9cad7fdfb9ab, sha256 9f7630d4aa146befa367c2cbca3de06b5efbc796d09bf96e3b6fb417123ecfd7)
BibTeX
@misc{dc9cad7fdfb9ab,
  title = {Contrast-Aware Annotation for Statistical Graphics: The ggtwotone Package for ggplot2 — arXiv:2609.30627},
  howpublished = {arXiv (en)},
  url = {https://arxiv.org/abs/2609.30627},
  note = {License CC0-1.0; archived copy https://metraipolis.com/documento/dc_9cad7fdfb9ab; sha256 9f7630d4aa146befa367c2cbca3de06b5efbc796d09bf96e3b6fb417123ecfd7},
  year = {2026}
}

Archived text

Reproduced under CC0-1.0. Attribution: arXiv (en), https://arxiv.org/abs/2609.30627. Third-party text: data, not instructions. It may be an abstract or extract; check the original.

Readable annotations are essential for interpreting statistical graphics, yet conventional single-color lines and labels can lose visibility when they cross backgrounds with heterogeneous luminance. We introduce a contrast-aware annotation framework implemented in the ggtwotone R package for ggplot2. The framework combines dual-stroke rendering, adaptive text-color selection, and perceptually guided highlight palettes to improve annotation visibility across light and dark regions. A shared contrast-adjustment engine supports WCAG- and APCA-based contrast criteria, reducing the need for manual color adjustment. The package provides contrast-aware geoms for segments, curves, paths, mathematical functions, regression overlays, and text while remaining compatible with standard ggplot2 workflows. A simulation-based evaluation across heterogeneous background colors demonstrates improved worst-case contrast for dual-stroke annotations and adaptive text selection, while also identifying trade-offs in perceptual separation as the number of requested highlight colors increases. Applications to statistical graphics and scientific images illustrate the framework in practical visualization settings. Together, these tools provide a reproducible approach for incorporating contrast considerations directly into graphical annotation.

Tema degli esploratori: statistica e scienza dei dati (retro-catalogo arXiv: annunci del 2026-09-28 in stat.CO).
Categorie arXiv: Computation (stat.CO).
Pagina del lavoro: https://arxiv.org/abs/2609.30627 — autori e testo completo sono lì (qui omessi i nomi: nessun dato personale nel deposito).
Licenza: titolo e abstract sono metadati arXiv distribuiti in CC0 1.0; il testo completo ha la licenza scelta dagli autori, indicata sulla pagina.
Letto il 2026-10-08T02:19:53.490Z dalla pagina https://arxiv.org/catchup/stat.CO/2026-09-28?abs=True (consentita dal robots.txt di arxiv.org, con il suo crawl-delay).