ggplotify: Convert Almost Any Plot to a 'grob' or 'ggplot' Object

Convert a plot to a 'grob' or a 'ggplot' object so that it joins the 'grid' and 'ggplot2' ecosystem. The input can be a plot call written as a formula or an expression, a function that draws to a graphics device, a graphic object produced by another package, or a plot captured by 'grDevices::recordPlot'. Output of 'base' graphics is redrawn with 'gridGraphics', so plots from different graphics systems can be arranged, aligned, annotated and inset with packages such as 'aplot' and 'patchwork'.

Version: 0.1.4
Depends: R (≥ 3.4.0)
Imports: ggplot2, graphics, grDevices, grid, gridGraphics, rlang, utils, yulab.utils
Suggests: aplot, colorspace, ggimage, knitr, lattice, patchwork, quarto, testthat, vcd
Published: 2026-10-12
DOI: 10.32614/CRAN.package.ggplotify
Author: Guangchuang Yu ORCID iD [aut, cre]
Maintainer: Guangchuang Yu <guangchuangyu at gmail.com>
BugReports: https://github.com/GuangchuangYu/ggplotify/issues
License: Artistic-2.0
URL: https://github.com/GuangchuangYu/ggplotify
NeedsCompilation: no
Materials: NEWS
CRAN checks: ggplotify results

Documentation:

Reference manual: ggplotify.html , ggplotify.pdf
Vignettes: Convert plots to grob and ggplot objects (source, R code)

Downloads:

Package source: ggplotify_0.1.4.tar.gz
Windows binaries: r-devel: ggplotify_0.1.3.zip, r-release: ggplotify_0.1.3.zip, r-oldrel: ggplotify_0.1.3.zip
macOS binaries: r-release (arm64): ggplotify_0.1.4.tgz, r-oldrel (arm64): ggplotify_0.1.4.tgz, r-release (x86_64): ggplotify_0.1.4.tgz, r-oldrel (x86_64): ggplotify_0.1.4.tgz
Old sources: ggplotify archive

Reverse dependencies:

Reverse depends: LogisticEnsembles
Reverse imports: aplot, baggr, broadSeq, chevreulShiny, clickableImageMap, DTRreg, eoffice, FCtools, foqat, FuseSOM, GABB, GenAI, GenomicPlot, ggbreak, ggimage, ggpicrust2, ggreveal, gofigR, interflex, LipidomicsR, maidr, MOSClip, MultiRNAflow, myTAI, PDATK, plotgardener, RevGadgets, RplotterPkg, SeaVal, seqsetvis, singleCellTK, spatialHeatmap, tReeTraits, uteals, VALERIE, wikiprofiler
Reverse suggests: BasketballAnalyzeR, BindingSiteFinder, ChIPseeker, CleanUpRNAseq, CrcBiomeScreen, enrichplot, epiSeeker, genekitr, ggfun, ggtree, MetMashR, NeuralEstimators, OlinkAnalyze, PCAtools, plotbb, proBatch, protGear, PsyMetricTools, SCpubr, sigminer, SpaDES.core, sugarglider, tinyarray, tseffects

Linking:

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