multiplot: Combine multiple ggplots

View source: R/multiplot.R

multiplotR Documentation

Combine multiple ggplots

Description

This function allows to combine different ggplots into one plot.

Usage

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

Arguments

...

multiple ggplots.

plotlist

a list with ggplots.

cols

numeric. Number of columns in the output plot.

layout

a matrix with the layout of the plots. If present, cols is ignored.

Details

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.

Author(s)

Cookbook for R

See Also

This is copied from the Cookbook for R


STATWORX/helfRlein documentation built on Feb. 12, 2024, 2:21 a.m.