multiplot: Multiple plot function

Description Usage Arguments Layout Reference

View source: R/fun-multiplot.R

Description

Print multiple ggplot plots on a single page. This is NOT splitting a single plot. Unlike with facetting, the plots can be completely different.

Usage

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

Arguments

...

plot objects

plotlist

list of plot objects

file

path to file to print the plots into (?)

cols

number of columns to arrange the plots into

layout

matrix specifying the layout as explained in graphics::layout; if present, cols is ignored

Layout

Layout specification by matrix works exactly like with graphics::layout. 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.

Reference

R Graphics Cookbook by Winston Chang


olobiolo/acutils documentation built on Nov. 28, 2021, 9:35 p.m.