multiplot: Combine multiple plots into a single one.

View source: R/plot_helper_functions.R

multiplotR Documentation

Combine multiple plots into a single one.

Description

ggplot objects can be passed in ..., or to plotlist (as a list of ggplot objects). If the layout is something like matrix(c(1,2,3,3), nrow = 2, byrow = TRUE), then plot 1 will go in the upper left, 2 will go in the upper right, and 3 will go all the way across the bottom. Helper function of plotClusterHeatmap and plotClusters.

Usage

multiplot(..., plotlist = NULL, file, cols = 1, layout = NULL)

Arguments

...

ggplot object; the plots.

plotlist

list; the plots.

file

character; filename where the plots will be saved.

cols

numeric; number of columns in the generated figure.

layout

matrix; A matrix specifying the layout. If present, 'cols' is ignored.


edroaldo/fusca documentation built on March 1, 2023, 1:43 p.m.