gridExtra: Miscellaneous Functions for "Grid" Graphics

Provides a number of user-level functions to work with "grid" graphics, notably to arrange multiple grid-based plots on a page, and draw tables.

Version: 2.3.1
Imports: gtable, grid, grDevices, graphics, utils
Suggests: ggplot2, egg, lattice, knitr, testthat
Published: 2026-06-25
DOI: 10.32614/CRAN.package.gridExtra
Author: Baptiste Auguie [aut, cre], Anton Antonov [ctb]
Maintainer: Baptiste Auguie <baptiste.auguie at vuw.ac.nz>
License: GPL-2 | GPL-3 [expanded from: GPL (≥ 2)]
NeedsCompilation: no
Materials: NEWS
CRAN checks: gridExtra results

Documentation:

Reference manual: gridExtra.html , gridExtra.pdf
Vignettes: arrangeGrob: arranging multiple grobs on a page (source, R code)
(Unofficial) overview of gtable (source, R code)
ngonGrob: regular polygons and ellipses in grid graphics (source, R code)
tableGrob: displaying tables as grid graphics (source, R code)

Downloads:

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

Reverse dependencies:

Reverse depends: bhm, CancerEvolutionVisualization, CAvariants, egg, GOplot, HH, IPDfromKM, LogisticEnsembles, metacart, metaEnsembleR, MinEDfind, NIRStat, nonmem2R, NumericEnsembles, PPtreeViz, primerTree, ProbBayes, RATest, rQSAR
Reverse imports: abstractr, accSDA, afmToolkit, AFR, afttest, AgroR, AgroTech, aMNLFA, analyzer, APIS, ARCensReg, archiveRetriever, ARDL, ardlverse, ATQ, auditor, autoslider.core, autostsm, badp, baggr, baker, bamdit, banter, bartXViz, basket, BasketballAnalyzeR, bayesDiagnostics, BayesFM, bayesforecast, BayesianQDM, bayesMRM, bayespm, bayesWatch, BCClong, BCEA, BCFM, bdots, bdrc, bdsm, BeeGUTS, BEKKs, Bernadette, betaARMA, BGPhazard, BioGSP, BioIndex, BioPET, BioPETsurv, biostats, BKP, blorr, BlueCarbon, BMEmapping, BNSP, boiwsa, bootcluster, BOP2FE, BoutrosLab.plotting.general, boxfilter, bp, brinton, bsamGP, BSL, BSPBSS, BTSPAS, C443, CA3variants, CAbiplot, CAISEr, calibmsm, carat, CARBayesST, CardioCurveR, causalPAF, cellWise, CensMFM, CepalStatR, changepoint.influence, ChaosGame, chemodiv, cito, classifierplots, ClassifyITS, classmap, clickableImageMap, climwin, clmplus, clusterMI, cmsafvis, cobalt, CohortMethod, CommKern, ConfMatrix, conformalInference.multi, CoNI, conos, corona, covalchemy, cprobit, crimeutils, crmPack, crosshap, curtailment, cutpointr, cvasi, CytoProfile, darksky, dartR, dartR.base, dartR.captive, DataExplorer, dataMaid, dataReporter, deaR, DeBoinR, deeptime, DendroSync, densityClust, DESA, detectRUNS, DFD, diagis, DIFM, dlookr, dotsViolin, dotwhisker, douconca, dowser, DOYPAColors, dqcheckr, dsa, DSAIDE, DSAIRM, dsBaseClient, dsims, dynsim, DySS, eam, easyalluvial, emdi, EmpiricalCalibration, EmpiricalDynamics, ENMTools, EpiEstim, EpiForsk, EpiLPS, epos, ER, esviz, EvaluateCore, EvidenceSynthesis, explainer, explore, extrememix, fastFGEE, fastFMM, fastqcr, FCtools, fect, FESta, Fgmutils, FIND, findviews, fingerPro, FishDiveR, fishualize, FitVerse, fmriqa, foqat, forestmangr, forestploter, fqardl, fsemipar, fSRM, funModeling, gammaFuncModel, GAPR, gemR, geofacet, geomerge, geostan, GET, getmstatistic, GFDsurv, ggdemetra, ggExametrika, ggfortify, ggguides, ggInterval, ggpp, ggpubr, ggquickeda, ggstar, ggtern, ggvolc, gkwreg, gluvarpro, GMLTM, GofCens, GPflexViz, gprofiler2, graphPAF, greed, GREENeR, grobblR, grouprar, gscaLCA, gseries, GWASinspector, HaDeX2, harrypotter, hbal, hdnom, hespdiv, HMDA, Hmisc, HOME, hpiR, htrSPRanalysis, HVT, hydroroute, iarm, iccCounts, iCellR, icpack, idiffomix, IFC, iglu, imsig, ingredients, interflex, iotarelr, iraceplot, IRon, irtQ, islasso, isobxr, jarbes, JMbayes2, jsmodule, jtdm, kernelPhil, kgschart, knobi, lame, lapop, LBSPR, lemna, lemon, lgpr, LifeTableBuilder, likert, lindia, loewesadditivity, logcumulant, lomb, loon, loon.ggplot, loon.shiny, lpirfs, lsirm12pl, MAARTS, magi, malariaAtlas, manhplot, MAPCtools, MBNMAtime, MCAvariants, mccca, mcStats, MDCcure, metaplot, metaviz, mgcViz, mglasso, mgwrsar, mirt, MitoHEAR, mixpoissonreg, ModalForecast, model4you, modgo, modnets, morse, morseTKTD, MOutliers, movementsync, MRFcov, mSigPlot, MultiGroupO, multilandr, MultivariateAnalysis, MuPETFlow, musclesyneRgies, MVET, mvfmr, NBKP, ncappc, networkscaleup, networktools, NeuralSens, NeuralSTATIS, NeuroDecodeR, neuromplex, ngme2, nima, NMAoutlier, nmathresh, NMTox, normfluodbf, nortsTest, NOVA, npde, OenoKPM, ogrdbstats, oHMMed, olsrr, OpenLand, oreo, OSLdecomposition, Ostats, pacotest, pam, panelView, patientProfilesVis, patterncausality, patternplot, pcreg, permubiome, PGRdup, pguIMP, phase1PRMD, phenofit, phyr, pkpd.Release, PLNmodels, PLUCR, polymatching, ppsr, PPtreeExt, prcbench, precrec, PressPurt, ProAE, promor, protein8k, ProteinPCA, PRTree, PsyMetricTools, PTXQC, qdap, qgcomp, qgcompint, r2glmm, r6qualitytools, rADA, RADstackshelpR, rainette, randomForestVIP, RaSEn, RBaM, rbbnp, RCtest, RDS, reddPrec, refreg, refund.shiny, RegrCoeffsExplorer, remote, reproducer, restriktor, retmort, rfPermute, rfriend, RGAP, RGCCA, RHC, ribiosPlot, RiskMap, rmcfs, rmsBMA, robin, rotations, Rprofet, rrepast, RSCAT, Rsmlx, RsSimulx, rstan, ruv, sae4health, saemix, saeTrafo, santaR, savvyPR, SCIntRuler, scorecard, sctransform, SDLfilter, SDModels, SEAHORS, sglg, ShapleyOutlier, shinyKGode, shinyMixR, shinystan, simPH, simrel, skipTrack, SLEMI, SmartEDA, SNPfiltR, soc.ca, spc4sts, speaq, spikeSlabGAM, splmm, spsur, SSVS, StabilityApp, statgenGxE, statgenHTP, statgenMPP, statgenSTA, statsr, stelfi, stpp, strvalidator, stxplore, SUMO, sure, surveil, survextrap, survidm, survminer, survstan, SVMMaj, SWMPr, tactile, TCIU, tcpl, teal.modules.general, TELP, tern, TesiproV, TheSFACE, ThinkingGrid, tigger, topolow, topr, tornado, TPD, tracee, TriMatch, trinROC, TSsmoothing, TVMM, twangMediation, TwoCutoff, TwoRegression, UBayFS, ubms, UComp, ulrb, umiAnalyzer, UniprotR, UpAndDownPlots, UpSetR, utile.visuals, VDSM, vennDiagramLab, vigicaen, viridis, vismi, vmsae, voi, WaterBalanceR, webSDM, WRI, WRTDStidal, WVPlots, XDNUTS, Xplortext, YEAB, yorkr, ZetaSuite, ZIHINAR1
Reverse suggests: abn, adelie, admix, adoptr, aimPlot, airt, ANOPA, APRScenario, archivist, autoimage, BAMBI, BayesDecon, BayesianDEB, bayesplot, baytaAAR, beadplexr, betaregscale, BigVAR, BioStatR, brainGraph, BRcal, breathtestcore, brokenstick, bujar, campsis, CAST, CausalGPS, ccdR, celltrackR, Certara.Xpose.NLME, ciftiTools, CircularRegression, civic.icarm, clayringsmiletus, cograph, condformat, confoundvis, connectapi, conquestr, convergEU, copula, countfitteR, countland, covidcast, craftgrn, ctsem, ctxR, DAISIE, dartR.popgen, DataVisualizations, DClusterm, ddpcr, deform, deliberr, descriptr, designr, detrendr, disclapmix, discord, DLMtool, dsem, ecorisk, efdm, EFDR, EGAnet, eikosograms, ElectDecomp, emcAdr, engager, ensembleML, ensr, eRTG3D, EstemPMM, EstimDiagnostics, evolqg, exact2x2, exuber, fairml, fastcpd, fastml, FAVA, fgdiR, fgeo.plot, fitODBOD, FMM, fpp2, frailtyEM, frailtySurv, FRK, funData, funtimes, gasanalyzer, GauPro, gbm, GeneralizedWendland, geocausal, ggbeeswarm, ggeffects, gggda, ggmcmc, ggmosaic2, ggmulti, ggmultiglyph, ggrepel, ggsci, ggskewboxplots, GLMcat, gMCPLite, gMOIP, grapherator, graphonmix, gravmagsubs, GRIN2, GroupSeq, gsDesign, gsDesignNB, gsignal, GSODR, HaDeX, hbbr, heteroTests, hexify, hhh4contacts, HistData, HLMdiag, hrbrthemes, htna, httk, httkexamples, hydroTSM, hyfo, hypervolume, IBMPopSim, ICESat2VegR, ifaTools, impala, IncDTW, iNEXT, iNEXT.3D, injurytools, innsight, interp, interplot, intkrige, invitroTKstats, IOBR, IRTest, isocat, isotracer, ivmte, jcolors, kalmanfilter, kimfilter, latrend, lionfish, lme4, LocalControl, LSAmitR, MachineShop, MagmaClustR, Markovchart, mcMST, meta, metadat, metadeconfoundR, microeco, miic, MIMSunit, MiscMetabar, missoNet, mixopt, mlrMBO, mlt.docreg, mosaic, MosaiClusteR, mpitbR, mrIML, MSEtool, multifear, multifunc, mutSignatures, nandb, naniar, Nestimate, netmeta, netplot, NeuralEstimators, npregfast, nuts, occupancy, OPSR, ordr, OutliersO3, outstandR, pagoda2, ParamHelpers, patchwork, PatientLevelPrediction, pbm, PDEnaiveBayes, pdp, pedbp, PerformanceAnalytics, PiC, pipeflow, pmc, PopED, portfolioBacktest, PosteriorBootstrap, PPforest, prevtoinc, PupilPre, qbrms, qlifetable, R.ComDim, RaCE.NMA, raptr, raretrans, rasterdiv, rasterList, rattle, rayshader, rdrobust, reporter, retrodesign, RiskScorescvd, riskutility, rjuliabugs, robustmatrix, rpf, RprobitB, rreg, rSPDE, rstanarm, RStoolbox, rtForecastEval, RTransferEntropy, rtrek, RTSA, ruminate, rxode2, SEI, SemNetDictionaries, sgd, SHAPforxgboost, ShinyItemAnalysis, simstudy, sjPlot, skpr, smdi, smoothy, Sofi, sorvi, sparseDFM, spatialTIME, spbal, SPECK, spind, spup, ssmodels, StatRank, success, sugarglider, superb, surveillance, surveyCV, surveyvoi, svmodt, tabr, tabxplor, tci, tcplfit2, texmex, TH.data, tidyfun, tidylearn, tidyspec, tipsae, TKApprox, tram, treefit, tsgc, ubiquity, vivid, vivo, voluModel, VWPre, walker, waydown, weatherOz, wpeR, xgxr, xpose, XYomics, yamlet, zenplots

Linking:

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