aplot: Decorate a 'ggplot' with Associated Information

Supports data-driven composition of a main plot with associated subplots that need precise axis alignment. Unlike general layout-focused tools such as 'cowplot' and 'patchwork', it enables related subplots to be integrated on the top, bottom, left, or right sides of a main plot with matched axes, so that the combined panels can be interpreted as a coherent whole. This design was inspired by the 'Method 2' described in 'ggtree' (G Yu (2018) <doi:10.1093/molbev/msy194>).

Version: 0.3.1
Depends: R (≥ 4.1.0)
Imports: ggfun (≥ 0.1.3), gtable, ggplot2, ggplotify, patchwork, magrittr, methods, utils, yulab.utils (≥ 0.1.9), pillar
Suggests: ggtree, testthat (≥ 3.0.0)
Published: 2026-07-07
DOI: 10.32614/CRAN.package.aplot
Author: Guangchuang Yu ORCID iD [aut, cre], Shuangbin Xu ORCID iD [ctb], Thomas Hackl [ctb]
Maintainer: Guangchuang Yu <guangchuangyu at gmail.com>
License: Artistic-2.0
URL: https://github.com/YuLab-SMU/aplot, https://yulab-smu.top/aplot/
NeedsCompilation: no
Citation: aplot citation info
Materials: NEWS
CRAN checks: aplot results

Documentation:

Reference manual: aplot.html , aplot.pdf

Downloads:

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

Reverse dependencies:

Reverse imports: aplotExtra, ChIPseeker, enrichplot, epiSeeker, ggbreak, ggmsa, ggpicrust2, ggtree, ggVennDiagram, interpretCI, scDotPlot, sitePath
Reverse suggests: DPI, ggplotify, ggsc, ggtangle, ggtreeDendro, MicrobiotaProcess, pctax, pcutils, plotbb, SVP

Linking:

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