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


News

Reference manual

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

install.packages("patchwork")

1.0.0 by Thomas Lin Pedersen, 4 days ago


https://patchwork.data-imaginist.com, https://github.com/thomasp85/patchwork


Report a bug at https://github.com/thomasp85/patchwork/issues


Browse source code at https://github.com/cran/patchwork


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


See at CRAN