Skip to content

ggpattern

1.3.1Package record

'ggplot2' Pattern Geoms

7packages dependsuggested by 12
157Kdownloads / year
–test coverage
13/13flavors OK

Overview

About

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.

Changes in 1.3.1

Breaking changes

  • Now requires ggplot2 (>= 4.0.2) and thus R (>= 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 size to linewidth translation in geom_bar_pattern()/geom_col_pattern(). This fallback was turned off in geom_bar() and geom_col() in {ggplot2} 4.0.0.

Deprecated features

  • geom_boxplot_pattern(fatten) is deprecated. Use geom_boxplot_pattern(median.linewidth) instead. fatten was deprecated in geom_boxplot() in {ggplot2} 4.0.0.
  • The fatten argument of geom_crossbar_pattern() is deprecated. Use middle.linewidth instead. fatten was deprecated in geom_crossbar() in {ggplot2} 4.0.0.
Show all changes in 1.3.1Hide the rest of the changes in 1.3.1
  • The draw_quantiles parameter of geom_violin_pattern() is deprecated. Use quantile.linetype instead. draw_quantiles was deprecated in geom_violin() in {ggplot2} 4.0.0.

New features

  • We now export GeomBin2dPattern.
  • geom_boxplot_pattern() gains whisker.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, and box.linewidth parameters for per-component styling. This matches the changes in geom_boxplot() in {ggplot2} 4.0.0.
  • geom_crossbar_pattern() gains middle.colour, middle.color, middle.linetype, middle.linewidth, box.colour, box.color, box.linetype, and box.linewidth parameters for per-component styling. This matches the changes in geom_crossbar() in {ggplot2} 4.0.0.
  • geom_violin_pattern() gains quantile.colour, quantile.color, quantile.linetype, and quantile.linewidth parameters for styling quantile lines. This matches the changes in geom_violin() in {ggplot2} 4.0.0.

Bug fixes and minor improvements

  • We now construct several geom functions from the {ggpattern} Geom objects with make_constructor() and these {ggpattern} Geom objects now directly inherit more methods from the {ggplot2} Geom objects they extend.
  • width is now an aesthetic (default 0.9) in geom_bar_pattern() and geom_col_pattern() rather than a function parameter and GeomBoxplotPattern and GeomViolinPattern default aesthetics now include width = 0.9. These match upstream changes in {ggplot2} 4.0.0.

From NEWS.md in the release

Install

Health

CRAN checks
13OK
Slowest check: 3.8 min · r-oldrel-windows-x86_64
Status changes
  • 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
Advisories

none known

Documentation

In release 1.3.1
READMEYes · 1,424 wordsVignettesYes · 4 · dynamicNEWSYes · 100% structured · mentions 1.3.1Citation fileNoWebsiteYes
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

157K
CRAN downloads in the past year
Rank #1,073 · ~430/day · ~13.1K/mo
Daily download trend is not available in this view yet.
10.5K30 days
35K90 days
157K1 year
Compare downloads with other packages →
Also on906 r2u3 autocran3.2K conda_forge

Repository

394Stars
18Forks
8Open issues
0Open PRs
9Releases
175Commits
2Commit identities
175 commits · Last activity 2026-06-24 · +0.5% stars, 30d · Default branch at 1.3.2-4, ahead of CRAN 1.3.1 (checked 2026-10-21)
Responsiveness
How these are sampled
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

2025-09-24 · 3782026-10-10 · 393
PracticesBeta

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.

Continuous integration (2)
GitHub ActionsR CMD check workflow

The R CMD check workflow runs on Linux, and on R-devel

Governance and community (2)
Issue templates

The repository owner accepts GitHub Sponsors

Docs source (2)
README.Rmdpkgdown
Reproducibility and dev environment (1)
data-raw/
Show all practicesHide 1 practice
CRAN release process (1)
cran-comments.md
How this is detected·Detection ruleset v4 (2026-10-20)
AI coding toolsBeta

This repository shows signs of AI coding tools.

  • Claude Codefirst seen 2026-02-19
    Named in .Rbuildignore: .claude
    Named in .gitignore: .claude
    Commits: at least 4 crediting it in the message
Models named in its commits
  • Claude Sonnet 4.63 commits · Jun 2026
  • Claude Opus 4.61 commit · Feb 2026
Counts are commits, not lines of code. Commits by a tool's accounts count once across all of its accounts. Commits crediting it are the largest count among its credit lines, a minimum.How this is detected·Detection ruleset v4 (updated 2026-09-27)

Dependencies

Declared dependencies
23 external dependencies (excludes base and recommended)

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.

Depends (1)
R >= 4.1
LinkingTo (0)
none
Enhances (0)
none
Reverse dependencies
7direct
0indirect
Imports 7
Suggested by 12
Show all 19 packagesHide all 19 packages
Depends, Imports or LinkingTo, most downloaded first
Suggests, most downloaded first

People & History

People (3)
Author, Maintainer · added in 1.1.1
Author

Maintainer since 0.4.1 (2022)

Listed in earlier versions (1)
no longer listed · 0.4.1 to 1.0.1
Releases (9)

Pick two releases to compare their code metrics.

  • R
    R 4.6.0 released · 2026-04-24
  • 1.3.1Latest
    record
    2026-03-07 · current release · diff ↗ ·
    added 1 export
    GeomBin2dPattern
  • 1.2.1
    record
    2025-08-27 · diff ↗
  • R
    R 4.5.0 released · 2025-04-11
  • 1.1.4
    record
    2025-01-29 · diff ↗
  • 1.1.3
    record
    2024-12-13 · diff ↗
  • 1.1.1
    record
    2024-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
  • R
    R 4.4.0 released · 2024-04-24
  • R
    R 4.3.0 released · 2023-04-21
  • 1.0.1
    record
    2022-11-10 · diff ↗
  • 1.0.0
    record
    2022-08-30 · diff ↗
  • R
    R 4.2.0 released · 2022-04-22
  • 0.4.2
    record
    2022-02-23 · diff ↗
  • 0.4.1
    record
    2022-02-22
  • R
    R 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")
Davis, T. L., ggplot2 authors, & FC, M. (2026). ggpattern: 'ggplot2' Pattern Geoms (Version 1.3.1) [Computer software]. https://doi.org/10.32614/CRAN.package.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.

APA

Balamuta, J. J. (2026). R Observatory: Metrics for ggpattern version 1.3.1 [Data set]. HJJB, LLC. Data release v2026-10-23. https://doi.org/10.5281/zenodo.21843040

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.

Report a problem with this page →

Privacy choices

These apply to this browser and are stored on this device only. Nothing about your choice is sent to us.

Read the privacy policy