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>).

Tests Vignettes

Available Snapshots

This version of aplot can be found in the following snapshots:

Dependencies

Imports/Depends/LinkingTo/Enhances (9)
  • R
  • ggfun >= 0.1.3
  • gtable
  • ggplot2
  • ggplotify
  • patchwork
  • magrittr
  • yulab.utils >= 0.1.9
  • pillar
  • Suggests (2)
  • ggtree
  • testthat >= 3.0.0
  • Version History