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.3.2
Imports: ggplot2 (≥ 3.0.0), gtable (≥ 0.3.6), grid, stats, grDevices, utils, graphics, rlang (≥ 1.0.0), cli, farver
Suggests: knitr, rmarkdown, gridGraphics, gridExtra, ragg, testthat (≥ 2.1.0), vdiffr, covr, png, gt (≥ 0.11.0)
Published: 2025年08月25日
Author: Thomas Lin Pedersen ORCID iD [cre, aut]
Maintainer: Thomas Lin Pedersen <thomasp85 at gmail.com>
License: MIT + file LICENSE
NeedsCompilation: no
Materials: README, NEWS
CRAN checks: patchwork results

Documentation:

Reference manual: patchwork.html , patchwork.pdf
Vignettes: Getting Started (source, R code)

Downloads:

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

Reverse dependencies:

Reverse imports: activAnalyzer, AgeBandDecomposition, ale, Analitica, AnanseSeurat, anansi, aplot, AssumpSure, autograph, autoReg, autostats, bartMan, BayesPower, BayesSIM, besthr, BioNERO, blase, BOP2FE, brinton, bspcov, calmr, caretEnsemble, CarletonStats, CBN2Path, CBNplot, CCPlotR, cellmig, Cepo, ChemoSpec, chevreulPlot, chillR, choicedata, cia, circhelp, clevRvis, cogeqc, ComplexUpset, Coxmos, CRABS, crosshap, ctsmTMB, CytoMDS, CytOpT, DamageDetective, Damsel, dartR, dartR.base, dartR.captive, dartR.popgen, dartR.sexlinked, dataquieR, dearseq, decisionSupport, decontX, DEplotting, DESpace, dgpsi, diversityForest, dotwhisker, DspikeIn, duet, dynamite, dyngen, E2E, ecic, edar, effectplots, ELViS, EpiForsk, EpiNow2, epiregulon.extra, ern, eudract, EvoPhylo, extraChIPs, fairmodels, fdaPOIFD, ffaframework, figpatch, FindIT2, fitbitViz, foqat, funcharts, funkyheatmap, G2Sd, gammaFuncModel, gdverse, geohabnet, gg1d, ggbrain, ggcharts, ggEDA, ggheatmap, ggkegg, gglm, ggmRSCU, ggpicrust2, ggquickeda, ggseqplot, ggstats, ggstatsplot, ggsurvfit, gosset, GPvam, grafify, grandR, GRaNIE, gratia, greenR, groupedHyperframe, GrowthCurveME, gsaot, gtregression, guideR, GUIDEseq, hahmmr, HaploCatcher, HGC, hhmR, hierarchicalSets, hockeystick, HybridExpress, HYPEtools, idopNetwork, iglu, immunogenViewer, infer, insane, insurancerating, interpretCI, intradayModel, iNZightRegression, iNZightTS, itsdm, ivDiag, jskm, kollaR, lactater, lares, linkSet, LipidMS, LMD, LongDat, LongDecompHE, loon.ggplot, LSTS, maaslin3, maraca, mastR, mcp, memes, messi, MetaboDynamics, metabolic, metan, MF.beta4, mFD, MicrobiotaProcess, miloR, mispitools, mlr3shiny, MLwrap, modgo, motifTestR, mrgsim.sa, mrIML, multimedia, multiplestressR, multiWGCNA, mvgam, myTAI, NanoMethViz, NetworkExtinction, neuralGAM, numbat, OmicFlow, omixVizR, oRaklE, OrgHeatmap, orthogene, packageRank, pcvr, PIUMA, plotlsirm, plotthis, pmartR, powerly, ppseq, PRECAST, puff, qbinplots, qmtools, quollr, r6qualitytools, RadEro, radiant.basics, radiant.data, radiant.model, radiant.multivariate, RandomWalker, randotools, RARfreq, rbiom, rcssci, redist, ReducedExperiment, RepeatedHighDim, resourcecode, retmort, rhierbaps, rnaCrosslinkOO, RNAseqQC, Robyn, rprimer, sae4health, scBubbletree, sccomp, scCustomize, scGate, scistreer, scRNAseqApp, scRNAstat, scruff, SeaVal, see, SEIRfansy, seqHMM, serosv, Seurat, SeuratExplorer, sffdr, shadowVIMP, shapviz, shinyMixR, shinymrp, shinySbm, Signac, signifinder, SimplyAgree, SingleMoleculeFootprinting, skytrackr, SlimR, SlotLim, smallsets, smplot2, sosta, SpaCCI, SPARRAfairness, spatialFDA, spatialRF, Spectran, SpliceWiz, splithalf, spotoroo, StabilityApp, standR, starvz, suddengains, sulcimap, sumvar, SuperCell, SurprisalAnalysis, survex, synlet, sysAgNPs, Sysrecon, tidychangepoint, TidyDensity, tidyHeatmap, tidyplots, tidypopgen, tidysdm, tinyarray, Tivy, toxSummary, trackeR, transmogR, traumar, treefit, treekoR, TrIdent, tRigon, triptych, upset.hp, vacalibration, VennDetail, visvaR, visxhclust, vital, Voyager, whippr, wordpredictor, Xplortext
Reverse suggests: accrualPlot, AlleleShift, AMISforInfectiousDiseases, anglemania, appeears, ARUtools, autonomics, bage, BayesERtools, BayesianReasoning, BayesSpace, bayestestR, bbknnR, behaviorchange, BindingSiteFinder, bootkmeans, brand.yml, broom.helpers, bsitar, camcorder, camtrapR, canaper, Canek, chem16S, ChemoSpecUtils, chessboard, CleanUpRNAseq, clugenr, ClustAssess, ClustIRR, clustSIGNAL, CNVreg, CohortSurvival, concordexR, ConfidenceEllipse, coveffectsplot, cowplot, cricketdata, CSOA, cubble, CytoPipelineGUI, CytoSimplex, decoupleR, delimtools, dominoSignal, doubletrouble, dscore, easybio, easystats, EDCimport, epmfd, escape, EWCE, FACT, fastml, faux, FAVA, FAVAR, ferrn, fftab, fivethirtyeight, FLORAL, fmesher, forestecology, forestly, fractalforest, funtimes, FuzzySpec, geofi, GeomxTools, geslaR, GET, ggblanket, ggbreak, ggdist, ggDoE, ggeasy, ggeffects, ggformula, gggenomes, ggHoriPlot, gglyph, ggmice, ggpedigree, ggprism, ggrepel, ggridges, ggspavis, ggtreeExtra, GIFT, goldfish, growR, gspcr, Guerry, harmony, hatchR, hdxmsqc, heplots, hermiter, HiContacts, hmde, HoloFoodR, HVT, ibdsim2, Ibex, IgGeneUsage, iml, IncidencePrevalence, industRial, inferCSN, inlabru, ipd, ipeaplot, jazzPanda, jlmerclusterperm, JSmediation, ldsr, LightLogR, likelihoodTools, lionfish, lmls, LorMe, lterdatasampler, mapindia, marginaleffects, marqLevAlg, marquee, MASSExtra, MassWateR, matrixset, mccount, MedLEA, metaconfoundr, mfp2, mia, miaViz, MiscMetabar, misty, mlr3fairness, mlr3spatiotempcv, mlr3viz, modelbased, moderndive, moreparty, MorphoRegions, mpmsim, MRG, multifunc, muscat, mvinfluence, nichetools, NMsim, nn2poly, nullranges, OBIC, oncomsm, pacu, painbow, palettes, paramix, partR2, PatientProfiles, pctax, performance, plotmm, plotscaper, POMA, portvine, PoweREST, prcbench, precrec, projoint, pvLRT, qPLEXanalyzer, quarto, r4ds.tutorials, r5r, rcldf, regressinator, rempsyc, reporter, reservr, rmcorr, robber, rredlist, rTPC, rxode2, scatterbar, scGraphVerse, scp, SCpubr, searchAnalyzeR, segregation, SemNetDictionaries, SETA, sfdep, sigminer, simdata, SimNPH, SingleCellAlleleExperiment, singleCellHaystack, SpaNorm, speckle, SPIChanges, spinifex, spStack, ssdtools, sSNAPPY, SUMMER, surveyPrev, tabnet, taylor, tfrmt, tidybulk, tidypaleo, tinythemes, tlars, trending, TRexSelector, UCell, unusualprofile, vayr, velociraptor, vissE, VizTest, vroom, weitrix, whitewater, x3ptools
Reverse enhances: ggalign

Linking:

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

AltStyle によって変換されたページ (->オリジナル) /