ggsketch: Grammar-Native Hand-Drawn Geoms for 'ggplot2'
Provides 'ggplot2' geoms that render with a hand-drawn, sketchy
aesthetic: roughened strokes, double-pass lines, and hachure, cross-hatch,
zigzag, and dots fill patterns. Implemented as pure-R 'grid' grobs wrapped
in 'ggproto' geoms, composable with aes(), stats, scales, and faceting.
Works on every R graphics device (PDF, PNG, SVG, screen) with no browser
dependency. Algorithms are reimplemented from the published 'rough.js'
algorithm description (Shihn, 2020,
<https://shihn.ca/posts/2020/roughjs-algorithms/>) and Wood and others
(2012, <doi:10.1109/TVCG.2012.262>); see the NOTICE file in the package
sources for attribution.
| Version: |
2.0.0 |
| Depends: |
R (≥ 4.1.0) |
| Imports: |
cli (≥ 3.4.0), ggplot2 (≥ 3.5.0), grDevices, grid, rlang (≥
1.0.0), scales (≥ 1.2.0), withr (≥ 2.5.0) |
| Suggests: |
gganimate, gifski, hexbin, igraph, knitr, magick, MASS, patchwork, quantreg, ragg, rmarkdown, sf, svglite, systemfonts, testthat (≥ 3.0.0), vdiffr (≥ 1.0.0) |
| Published: |
2026-07-17 |
| DOI: |
10.32614/CRAN.package.ggsketch (may not be active yet) |
| Author: |
Arijit Ghosh [aut, cre] |
| Maintainer: |
Arijit Ghosh <arijitghosh2009 at gmail.com> |
| BugReports: |
https://github.com/orijitghosh/ggsketch/issues |
| License: |
MIT + file LICENSE |
| URL: |
https://github.com/orijitghosh/ggsketch,
https://orijitghosh.github.io/ggsketch/ |
| NeedsCompilation: |
no |
| Language: |
en-US |
| Materials: |
README, NEWS |
| CRAN checks: |
ggsketch results |
Documentation:
Downloads:
Linking:
Please use the canonical form
https://CRAN.R-project.org/package=ggsketch
to link to this page.