ggtwotone: Dual-Tone and Contrast-Aware 'ggplot2' Geoms

Provides dual-stroke and contrast-aware extensions to 'ggplot2', designed for improved visibility and accessibility in complex visualizations. Includes geoms for dual-stroke segments, regression lines, curved annotations, function plots, paths, and adaptive text. Also includes utility functions for computing contrast-aware color pairs and perceptually distinct highlight palettes using Web Content Accessibility Guidelines (WCAG)-based contrast logic.

Version: 0.1.0
Depends: R (≥ 4.1.0), ggplot2 (≥ 4.0.3)
Imports: colorspace (≥ 2.1.2), farver (≥ 2.1.2), grDevices (≥ 4.5.2), grid (≥ 4.5.2), methods (≥ 4.5.2), rlang (≥ 1.1.7), stats (≥ 4.5.2), tidyr (≥ 1.3.2), utils (≥ 4.5.2)
Suggests: dplyr, knitr, rmarkdown, scales, spelling, testthat (≥ 3.0.0), vdiffr
Published: 2026-07-19
DOI: 10.32614/CRAN.package.ggtwotone (may not be active yet)
Author: Beenu Sareena ORCID iD [aut, cre], Heike Hofmann ORCID iD [aut]
Maintainer: Beenu Sareena <79365709 at nebraska.edu>
BugReports: https://github.com/bwanniarachchige2/ggtwotone/issues
License: MIT + file LICENSE
URL: https://github.com/bwanniarachchige2/ggtwotone
NeedsCompilation: no
Language: en-US
Materials: README, NEWS
CRAN checks: ggtwotone results

Documentation:

Reference manual: ggtwotone.html , ggtwotone.pdf
Vignettes: Getting Started with ggtwotone (source, R code)

Downloads:

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

Linking:

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