The Composer of Plots
Overview
The 'ggplot2' package provides a strong API for sequentially building up a plot, but does not concern itself with composition of multiple plots. 'patchwork' is a package that expands the API to allow for arbitrarily complex composition of plots by, among others, providing mathematical operators for combining multiple plots. Other packages that try to address this need (but with a different approach) are 'gridExtra' and 'cowplot'.
- Fixed a load-time bug that could throw spurious warnings
From NEWS.md in the release
Install
Health
- OK13 OK2026-08-05
- NOTE12 OK, 1 NOTE2026-08-01
- OK14 OK2026-03-10
Documentation
- Help pages
- 17 (4 internal)includes a package overview page
- Examples that run
- 100%14 run in a plain check (1 of them under a condition)
- Exported functions with examples
- 80%
- Documented parameters
- 67%
- Return-value docs
- 87%
- Help pages citing references
- 0%
Downloads
Repository
- PRs merged (all time)
- 75%
- Median days to close, 50 most recently updated closed issues
- 9
- Median days to close, 50 most recently updated closed PRs
- 27
Stars over time
Forks over time
Releases over time
Issues over time
PRs over time
10 development-tooling and community-health practices detected across 5 families in the upstream repository
Checks run against github.com/thomasp85/patchwork on 2026-10-11.
The R CMD check workflow runs on Linux, macOS and Windows, and on R-devel
GitHub Pages site last deployed 2025-08-25 · The repository has a site deploy workflow
pkgdown site last built 2025-08-25
Show all practicesHide 1 practice
Dependencies
Installing patchwork adds 17 packages (7 with compiled code, 14 MB of source tarballs). Heaviest: ggplot2 6.0 MB, isoband 1.5 MB, farver 1.2 MB.
Show the 48 most downloaded dependentsHide the 48 most downloaded dependents
and 309 more dependents and 310 packages that suggest it on CRAN ↗
Code & Tests
People & History
Pick two releases to compare their code metrics.
- RR 4.6.0 released · 2026-04-24
- 1.3.2Latest
- 1.3.12025-06-21 · diff ↗
- RR 4.5.0 released · 2025-04-11
- 1.3.0
- RR 4.4.0 released · 2024-04-24
- 1.2.0
- 1.1.32023-08-14 · diff ↗
- RR 4.3.0 released · 2023-04-21
- 1.1.22022-08-19 · diff ↗
- RR 4.2.0 released · 2022-04-22
- RR 4.1.0 released · 2021-05-18
- 1.1.12020-12-17 · diff ↗
- 1.1.0
- 1.0.1
- RR 4.0.0 released · 2020-04-24
Show 2 earlier eventsHide 2 earlier events
- 1.0.02019-12-01
- RR 3.6.0 released · 2019-04-26
Package metadata
- First published
- 2019-12-01
- Total releases
- 10 / 7 yrs
- License
- MIT + file LICENSE OSI
- Download size
- 3.2 MB
Cite
Cite this package
Run in R for the authors' preferred citation:
citation("patchwork")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-18, which the citation names so these numbers can be found later. More on citing and the projects behind them.