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.


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. Earlier versions of the package contained more experimental graphical objects (grobs), that have now been removed.

See the gridExtra wiki for additional information, answers to Frequently Asked Questions, and the latest vignettes.

News

gridExtra 2.3.0 (2017-09-01)

Misc. cleanup for CRAN release

  • renamed cbind/rbind functions copied from gtable to cbind_gtable and rbind_gtable to avoid issues with generic method (different signature)
  • more consistency in gtable-related functions

gridExtra 2.2.0 (2016-02-27)

NEW FEATURES

  • added padding argument to table themes
  • simplified a few theme arguments

BUG FIX

  • recycling logic was flawed for aesthetics in table cells

gridExtra 2.1.0 (2015-07-27)

DOCUMENTATION

  • expanded vignettes
  • wiki page features a FAQ section

NEW FEATURES

  • added join function from gtable (with fix)
  • global size and font parameters more accessible in themes
  • added str.gtable method

BUG FIX

  • str.default was causing issues with gtables

gridExtra 2.0.0 (2015-07-11)

  • removed experimental grobs and functions not widely used (they can be found at https://github.com/baptiste/gridextra if needed)

  • arrangeGrob/grid.arrange is now based on gtable

  • tableGrob/grid.table is now based on gtable

gridExtra 1.0.0 (2014-10-05)

CLEANUP

  • several buggy functions removed

gridExtra 0.9.1 (2012-08-09)

FIX

  • small compatibility issue of arrangeGrob with new class of ggplot2

gridExtra 0.9 (2012-01-06)

FIX

  • dependencies in examples, imports and exports

NEW

  • multipage output and ggsave support for grid.arrange

gridExtra 0.8.5 (2011-10-26)

FIX

  • removed LazyLoad, deprecated in R>=2.14

NEW

  • stextGrob text with a background

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("gridExtra")

2.3 by Baptiste Auguie, 10 months ago


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


Authors: Baptiste Auguie [aut, cre], Anton Antonov [ctb]


Documentation:   PDF Manual  


GPL (>= 2) license


Imports gtable, grid, grDevices, graphics, utils

Suggests ggplot2, egg, lattice, knitr, testthat


Imported by AFM, BNSP, BSL, BayesFM, BioPET, BoutrosLab.plotting.general, C443, CONS, ChaosGame, CommT, CorShrink, CosmoPhotoz, DClusterm, DLMtool, DataExplorer, DendroSync, EmpiricalCalibration, Fgmutils, GADMTools, Hmisc, IntClust, LBSPR, LumReader, MetamapsDB, NOAAWeather, PGRdup, PTXQC, Phxnlme, PhyInformR, Plasmidprofiler, QuantumClone, RAM, RDS, RMCriteria, RSPS, Rprofet, Rsmlx, SDLfilter, SVMMaj, SWMPr, ShinyItemAnalysis, SmartEDA, TELP, TPD, TriMatch, UpSetR, WRTDStidal, WVPlots, Xplortext, aMNLFA, accSDA, afmToolkit, atlantistools, bamdit, blorr, brainGraph, bsam, bsamGP, caretEnsemble, cellWise, choroplethr, classifierplots, cocoreg, colorpatch, coxed, crmPack, cutpointr, darksky, dataMaid, dendroTools, densityClust, detectRUNS, diagis, did, dlookr, dynsim, ecd, emdi, episensr, fSRM, fastqcr, findviews, fingerPro, fmriqa, funModeling, gdimap, geofacet, geomerge, getmstatistic, ggdmc, ggfortify, ggguitar, ggmosaic, ggpmisc, ggpubr, ggquickeda, ggtern, gogamer, granovaGG, hdnom, joineRmeta, kgschart, learningCurve, lemon, likert, lindia, lmms, lsbclust, malariaAtlas, mbgraphic, meaRtools, metaplotr, metaviz, microsamplingDesign, miscset, mixOmics, model4you, morse, mosaic, moveVis, myTAI, networktools, nima, nlirms, nmathresh, olsrr, otvPlots, pacotest, panelView, patPRO, pdp, pifpaf, pointRes, prcbench, precrec, preproviz, qdap, qsort, quokar, r2glmm, radiant.basics, radiant.data, radiant.model, radiant.multivariate, rangeMapper, refund.shiny, remote, reproducer, rfPermute, rnoaa, rrepast, rstan, ruv, santaR, scorecard, shinyKGode, shinystan, simPH, snht, soc.ca, sparsereg, speaq, spikeSlabGAM, spotGUI, starmie, statebins, statsr, stpp, strataG, strvalidator, subspaceMOA, sure, survMisc, survminer, svdvis, tRophicPosition, tactile, theseus, trackeR, userfriendlyscience, varian, vdg, vip, viridis, waffle, yorkr.

Depended on by ACSNMineR, ESGtoolkit, GOplot, HH, NIRStat, PPtreeViz, RATest, TeachBayes, climwin, cr17, egg, flowDiv, metacart, primerTree, rorutadis, sparkTable, spc4sts, tcR.

Suggested by EFDR, FField, GSODR, HistData, INDperform, IncDTW, KSD, LSAmitR, LocalControl, OutliersO3, PPforest, ParamHelpers, RGraphics, RStoolbox, RcmdrPlugin.MA, RxODE, SCGLR, SUMMER, Sofi, StatRank, VWPre, XGR, aimPlot, autoimage, bayesplot, beadplexr, bomrang, braidReports, breathtestcore, cate, copula, ddpcr, disclapmix, dotwhisker, dtwSat, eechidna, eesim, evolqg, exuber, fivethirtyeight, fpp2, frailtyEM, frailtySurv, funData, futureheatwaves, ggQC, ggalt, ggbeeswarm, ggmcmc, ggrepel, ggridges, ggsci, grapherator, hhh4contacts, hrbrthemes, hydrolinks, hyfo, iNEXT, iNextPD, ifaTools, jcolors, ltbayes, mcMST, medicalrisk, mlrMBO, mlt.docreg, mlxR, naniar, npregfast, planar, pmc, powerlmm, raptr, rattle, rotations, rpf, rreg, rstanarm, simstudy, sjPlot, solarius, spup, stormwindmodel, surveillance, texmex, trackr, vortexR, walker, walkr, xpose, zenplots.


See at CRAN