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

Version: 1.2.0
Imports: ggplot2 (≥ 3.0.0), gtable, grid, stats, grDevices, utils, graphics, rlang, cli
Suggests: knitr, rmarkdown, gridGraphics, gridExtra, ragg, testthat (≥ 2.1.0), vdiffr, covr, png
Published: 2024-01-08
Author: Thomas Lin Pedersen ORCID iD [cre, aut]
Maintainer: Thomas Lin Pedersen <thomasp85 at gmail.com>
BugReports: https://github.com/thomasp85/patchwork/issues
License: MIT + file LICENSE
URL: https://patchwork.data-imaginist.com, https://github.com/thomasp85/patchwork
NeedsCompilation: no
Materials: README NEWS
CRAN checks: patchwork results

Documentation:

Reference manual: patchwork.pdf
Vignettes: Getting Started

Downloads:

Package source: patchwork_1.2.0.tar.gz
Windows binaries: r-devel: patchwork_1.2.0.zip, r-release: patchwork_1.2.0.zip, r-oldrel: patchwork_1.2.0.zip
macOS binaries: r-release (arm64): patchwork_1.2.0.tgz, r-oldrel (arm64): patchwork_1.2.0.tgz, r-release (x86_64): patchwork_1.2.0.tgz
Old sources: patchwork archive

Reverse dependencies:

Reverse depends: MixOptim, Nebulosa, ngsReports, pmxTools
Reverse imports: activAnalyzer, AnanseSeurat, aplot, autoReg, besthr, BioNERO, bridger, brinton, calmr, CarletonStats, CBNplot, CCPlotR, Cepo, ChemoSpec, chillR, clevRvis, cmcR, cogeqc, ComplexUpset, CRABS, crosshap, CytOpT, dartR, dartR.base, dartR.captive, dartR.popgen, dataquieR, dearseq, decisionSupport, decontX, DESpace, dgpsi, dotwhisker, dynamic, dynamite, dyngen, ecic, EpiForsk, EpiNow2, ern, escape, eudract, EvoPhylo, extraChIPs, fairmodels, fdaPOIFD, figpatch, FindIT2, fitbitViz, foqat, forestecology, funcharts, funkyheatmap, ggbrain, ggcharts, ggheatmap, ggkegg, gglm, ggpicrust2, ggquickeda, ggseqplot, ggstats, ggstatsplot, ggsurvfit, gosset, grafify, grandR, GRaNIE, gratia, GUIDEseq, hahmmr, HaploCatcher, HGC, hierarchicalSets, hockeystick, HYPEtools, idopNetwork, iglu, infer, inferCSN, insane, insurancerating, interpretCI, intradayModel, iNZightRegression, iNZightTS, itsdm, ivDiag, jskm, lactater, lares, LMD, LongDat, loon.ggplot, LSTS, mastR, mcp, memes, messi, metabolic, metan, MF.beta4, mFD, microbiomeMarker, MicrobiotaProcess, miloR, mispitools, mlr3shiny, mrgsim.sa, msmtools, multiplestressR, multiWGCNA, NanoMethViz, NetFACS, NetworkExtinction, numbat, orthogene, pmartR, powerly, ppseq, PRECAST, psycModel, qacBase, qmtools, radiant.basics, radiant.data, radiant.model, radiant.multivariate, RARfreq, rcssci, redist, rhierbaps, rliger, rnaCrosslinkOO, RNAseqQC, Robyn, rprimer, scBubbletree, sccomp, scCustomize, scGate, scistreer, ScreenR, scRNAseqApp, scRNAstat, SeaVal, SEIRfansy, Seurat, shapviz, shinySbm, Signac, signifinder, SimplyAgree, smallsets, spatialRF, Spectran, SpliceWiz, splithalf, spotoroo, standR, starvz, suddengains, survex, synlet, Sysrecon, TidyDensity, tidyHeatmap, tidysdm, tinyarray, toxSummary, treefit, treekoR, tRigon, triplot, triptych, uniswappeR, UpSetVP, visxhclust, Voyager, whippr, wordpredictor
Reverse suggests: accrualPlot, ale, AlleleShift, appeears, BayesianReasoning, BayesSpace, bayestestR, bbknnR, BindingSiteFinder, broom.helpers, camcorder, canaper, Canek, Cepo, chem16S, ChemoSpecUtils, chessboard, clugenr, ClustAssess, ClustIRR, concordexR, coveffectsplot, cowplot, cricketdata, cubble, CytoPipelineGUI, CytoSimplex, decoupleR, doubletrouble, dscore, EWCE, FACT, factR, faux, FAVAR, ferrn, fivethirtyeight, FLORAL, funtimes, geofi, GeomxTools, geslaR, GET, ggblanket, ggbreak, ggdist, ggDoE, ggeasy, ggeffects, ggHoriPlot, ggmice, ggmosaic, ggprism, ggrepel, ggridges, ggtreeExtra, GIFT, growR, gspcr, Guerry, harmony, hermiter, HiContacts, ibawds, iml, industRial, inlabru, jlmerclusterperm, JSmediation, ldsr, lmls, lterdatasampler, manynet, marginaleffects, marqLevAlg, MASSExtra, MassWateR, matrixset, MedLEA, metaconfoundr, mfp2, mia, miaViz, MiscMetabar, misty, mlr3fairness, mlr3spatiotempcv, mlr3viz, modelbased, moderndive, multifunc, mvinfluence, nestedmodels, NMsim, nn2poly, nullranges, OBIC, oncomsm, pagoo, painbow, palettes, partR2, performance, plotmm, POMA, portvine, prcbench, precrec, pvLRT, r4ds.tutorials, r5r, regressinator, rempsyc, reporter, reservr, rfishdraw, robber, rTPC, rxode2, scp, SCpubr, see, segregation, sfdep, sigminer, SimNPH, singleCellHaystack, speckle, sSNAPPY, SUMMER, tfrmt, tidypaleo, tinythemes, tlars, trending, TRexSelector, UCell, unusualprofile, velociraptor, vissE, vroom, weitrix, whitewater, x3ptools

Linking:

Please use the canonical form https://CRAN.R-project.org/package=patchwork to link to this page.