ggalign ggalign website

R-CMD-check This package extends ggplot2, enabling consistent axis alignment across multiple plots. It’s particularly useful for plots where data order needs to be manipulated, such as aligning a dendrogram with a heatmap.

Installation

You can install the development version of ggalign from GitHub with:

# install.packages("remotes")
remotes::install_github("Yunuuuu/ggalign")

Overviews

ggalign pacakge provides two layout to arrange ggplot objects:

To further customize these layouts, we offer following functions:

For more detailed instructions on customizing layouts, see the vignette: vignette("align-layout").

Additionally, plots can be added in the layout with following functions:

For more information on adding plots, refer to the vignette: vignette("align-plot").

Documentation

Examples