'ggplot2' Pattern Geoms
Overview
Provides 'ggplot2' geoms filled with various patterns. Includes a patterned version of every 'ggplot2' geom that has a region that can be filled with a pattern. Provides a suite of 'ggplot2' aesthetics and scales for controlling pattern appearances. Supports over a dozen builtin patterns (every pattern implemented by 'gridpattern') as well as allowing custom user-defined patterns.
Breaking changes
- Now requires
ggplot2(>= 4.0.2) and thusR(>= 4.1). - All geom default aesthetics now use
from_theme()for colours, line widths, and line types. These changes were made to the{ggplot2}analogues in{ggplot2}4.0.0. - Turned off fallback for
sizetolinewidthtranslation ingeom_bar_pattern()/geom_col_pattern(). This fallback was turned off ingeom_bar()andgeom_col()in{ggplot2}4.0.0.
Deprecated features
geom_boxplot_pattern(fatten)is deprecated. Usegeom_boxplot_pattern(median.linewidth)instead.fattenwas deprecated ingeom_boxplot()in{ggplot2}4.0.0.- The
fattenargument ofgeom_crossbar_pattern()is deprecated. Usemiddle.linewidthinstead.fattenwas deprecated ingeom_crossbar()in{ggplot2}4.0.0.
Show all changes in 1.3.1Hide the rest of the changes in 1.3.1
- The
draw_quantilesparameter ofgeom_violin_pattern()is deprecated. Usequantile.linetypeinstead.draw_quantileswas deprecated ingeom_violin()in{ggplot2}4.0.0.
New features
- We now export
GeomBin2dPattern. geom_boxplot_pattern()gainswhisker.colour,whisker.color,whisker.linetype,whisker.linewidth,staple.colour,staple.color,staple.linetype,staple.linewidth,median.colour,median.color,median.linetype,median.linewidth,box.colour,box.color,box.linetype, andbox.linewidthparameters for per-component styling. This matches the changes ingeom_boxplot()in{ggplot2}4.0.0.geom_crossbar_pattern()gainsmiddle.colour,middle.color,middle.linetype,middle.linewidth,box.colour,box.color,box.linetype, andbox.linewidthparameters for per-component styling. This matches the changes ingeom_crossbar()in{ggplot2}4.0.0.geom_violin_pattern()gainsquantile.colour,quantile.color,quantile.linetype, andquantile.linewidthparameters for styling quantile lines. This matches the changes ingeom_violin()in{ggplot2}4.0.0.
Bug fixes and minor improvements
- We now construct several geom functions from the
{ggpattern}Geomobjects withmake_constructor()and these{ggpattern}Geomobjects now directly inherit more methods from the{ggplot2}Geomobjects they extend. widthis now an aesthetic (default0.9) ingeom_bar_pattern()andgeom_col_pattern()rather than a function parameter andGeomBoxplotPatternandGeomViolinPatterndefault aesthetics now includewidth = 0.9. These match upstream changes in{ggplot2}4.0.0.
From NEWS.md in the release
Install
Health
- OK13 OK2026-08-05
- NOTE12 OK, 1 NOTE2026-08-01
- OK12 OK, 1 FAILURE2026-06-08
- ERROR12 OK, 1 ERROR2026-06-07
- OK13 OK2026-05-12
Show 10 earlier changesHide 10 earlier changes
- ERROR12 OK, 1 ERROR2026-05-05
- OK13 OK2026-05-03
- ERROR13 OK, 1 ERROR2026-04-24
- OK14 OK2026-04-20
- ERROR13 OK, 1 ERROR2026-04-13
- OK14 OK2026-04-09
- ERROR13 OK, 1 ERROR2026-04-07
- OK14 OK2026-03-29
- ERROR13 OK, 1 ERROR2026-03-25
- OK14 OK2026-03-10
Documentation
- Help pages
- 21 (1 internal)includes a package overview page
- Examples that run
- 100%18 run in a plain check
- Exported functions with examples
- 95%
- Documented parameters
- 41%
- Return-value docs
- 95%
- Help pages citing references
- 0%
Downloads
Repository
- PRs merged (all time)
- 92%
- Median days to close, 50 most recently updated closed issues
- 13
- Median days to close, 50 most recently updated closed PRs
- 1
Stars over time
Forks over time
Releases over time
Issues over time
PRs over time
8 development-tooling and community-health practices detected across 5 families in the upstream repository
Checks run against github.com/trevorld/ggpattern on 2026-10-21.
The R CMD check workflow runs on Linux, and on R-devel
The repository owner accepts GitHub Sponsors
Show all practicesHide 1 practice
This repository shows signs of AI coding tools.
- Claude Codefirst seen 2026-02-19Named in .Rbuildignore: .claudeNamed in .gitignore: .claudeCommits: at least 4 crediting it in the message
- Claude Sonnet 4.63 commits · Jun 2026
- Claude Opus 4.61 commit · Feb 2026
Dependencies
Installing ggpattern adds 31 packages (18 with compiled code, 33 MB of source tarballs). Heaviest: sf 9.3 MB, ggplot2 6.0 MB, gridpattern 2.8 MB.
Show all 19 packagesHide all 19 packages
Code & Tests
People & History
Maintainer since 0.4.1 (2022)
Pick two releases to compare their code metrics.
- RR 4.6.0 released · 2026-04-24
- 1.3.1Latest
- 1.2.12025-08-27 · diff ↗
- RR 4.5.0 released · 2025-04-11
- 1.1.42025-01-29 · diff ↗
- 1.1.32024-12-13 · diff ↗
- 1.1.12024-06-04 · diff ↗ ·
added 5 exports
geom_bin_2d_pattern, scale_pattern_units_continuous, scale_pattern_units_discrete, scale_pattern_units_identity, scale_pattern_units_manual - RR 4.4.0 released · 2024-04-24
- RR 4.3.0 released · 2023-04-21
- 1.0.12022-11-10 · diff ↗
- 1.0.02022-08-30 · diff ↗
- RR 4.2.0 released · 2022-04-22
- 0.4.22022-02-23 · diff ↗
- 0.4.12022-02-22
- RR 4.1.0 released · 2021-05-18
Package metadata
- First published
- 2022-02-22
- Total releases
- 9 / 4 yrs
- License
- MIT + file LICENSE OSI
- Minimum R
- ≥ 4.1
- Download size
- 3.4 MB
Cite
Cite this package
Run in R for the authors' preferred citation:
citation("ggpattern")This package has no citation file, so citation() returns this entry built from DESCRIPTION.
Cite the R Observatory
For a number measured here: a download total, a coverage figure, an archival date.
From data release v2026-10-23, which the citation names so these numbers can be found later. More on citing and the projects behind them.