Learn R Programming

aplot (version 0.2.8)

Decorate a 'ggplot' with Associated Information

Description

For many times, we are not just aligning plots as what 'cowplot' and 'patchwork' did. Users would like to align associated information that requires axes to be exactly matched in subplots, e.g. hierarchical clustering with a heatmap. Inspired by the 'Method 2' in 'ggtree' (G Yu (2018) ), 'aplot' provides utilities to aligns associated subplots to a main plot at different sides (left, right, top and bottom) with axes exactly matched.

Copy Link

Version

Install

install.packages('aplot')

Monthly Downloads

57,558

Version

0.2.8

License

Artistic-2.0

Issues

Pull Requests

Stars

Forks

Maintainer

Guangchuang Yu

Last Published

July 2nd, 2025

Functions in aplot (0.2.8)

insert_left

plot-insertion
gglistGrob

This function converts 'gglist' object to grob (i.e. gtable object)
plot_list

plot a list of ggplot objects
xlab2

display x or y axis label as an ordinary text, so that the label will not be aligned with axis label of another plot
gglist

construct a `gglist` object
reexports

Objects exported from other packages
as.patchwork

as.patchwork
xlim2

xlim2
aplot-package

aplot: Decorate a 'ggplot' with Associated Information