Skip to main page content
U.S. flag

An official website of the United States government

Dot gov

The .gov means it’s official.
Federal government websites often end in .gov or .mil. Before sharing sensitive information, make sure you’re on a federal government site.

Https

The site is secure.
The https:// ensures that you are connecting to the official website and that any information you provide is encrypted and transmitted securely.

Access keys NCBI Homepage MyNCBI Homepage Main Content Main Navigation
. 2022 Mar 28;38(7):2042-2045.
doi: 10.1093/bioinformatics/btac057.

Plotgardener: cultivating precise multi-panel figures in R

Affiliations

Plotgardener: cultivating precise multi-panel figures in R

Nicole E Kramer et al. Bioinformatics. .

Abstract

Motivation: The R programming language is one of the most widely used programming languages for transforming raw genomic datasets into meaningful biological conclusions through analysis and visualization, which has been largely facilitated by infrastructure and tools developed by the Bioconductor project. However, existing plotting packages rely on relative positioning and sizing of plots, which is often sufficient for exploratory analysis but is poorly suited for the creation of publication-quality multi-panel images inherent to scientific manuscript preparation.

Results: We present plotgardener, a coordinate-based genomic data visualization package that offers a new paradigm for multi-plot figure generation in R. Plotgardener allows precise, programmatic control over the placement, esthetics and arrangements of plots while maximizing user experience through fast and memory-efficient data access, support for a wide variety of data and file types, and tight integration with the Bioconductor environment. Plotgardener also allows precise placement and sizing of ggplot2 plots, making it an invaluable tool for R users and data scientists from virtually any discipline.

Availability and implementation: Package: https://bioconductor.org/packages/plotgardener, Code: https://github.com/PhanstielLab/plotgardener, Documentation: https://phanstiellab.github.io/plotgardener/.

Supplementary information: Supplementary data are available at Bioinformatics online.

PubMed Disclaimer

Figures

Fig. 1.
Fig. 1.
Plotgardener uses a coordinate-based plotting system to size and arrange plots. (a) Blueprint outline of a multi-omic figure to be created with specified dimensions and placements on a defined page. (b) Multi-panel, multi-omic figure programmatically created with plotgardener using the sizing and placement coordinates from (a). The plotgardener functions used to create this figure include pageCreate, plotHicSquare, annoHeatmapLegend, plotGenes, annoGenomeLabel, plotIdeogram, plotHicTriangle, plotSignal and plotText. Code to reproduce this plot is included in the plotgardener package

Similar articles

Cited by

References

    1. Abeel T. et al. (2012) GenomeView: a next-generation genome browser. Nucleic Acids Res., 40, e12. - PMC - PubMed
    1. Adobe Inc. (2019) Adobe Illustrator (CC 2019 (23.0.3)) [Computer software]. https://adobe.com/products/illustrator (3 December 2021, date last acces....
    1. Apple Inc. (n.d.) Keynote (Version 11.0.1) [MacOS]. https://www.apple.com/keynote/.
    1. Auguie B. (2017) gridExtra: miscellaneous Functions for “Grid” Graphics. https://CRAN.R-project.org/package=gridExtra (3 December 2021, date last....
    1. Auguie B. (2019) egg: extensions for “ggplot2”: custom Geom, Custom Themes, Plot Alignment, Labelled Panels, Symmetric Scales, and Fixed Panel Size. https://CRAN.R-project.org/package=egg (3 December 2021, date last acces....

Publication types