The Composer of Plots

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'.


Reference manual

It appears you don't have a PDF plugin for this browser. You can click here to download the reference manual.


1.0.0 by Thomas Lin Pedersen, 3 months ago,

Report a bug at

Browse source code at

Authors: Thomas Lin Pedersen [cre, aut]

Documentation:   PDF Manual  

MIT + file LICENSE license

Imports ggplot2, gtable, grid, stats, grDevices, utils, graphics

Suggests knitr, rmarkdown, gridGraphics, gridExtra, ragg, testthat, vdiffr, covr

Imported by Seurat, mcp, rhierbaps.

Suggested by coveffectsplot, ggeasy, ggridges, vroom.

See at CRAN