multiplot: Draw multiple ggplot2 visualizations on a single plot

Description Usage Arguments Details Examples

Description

Create your plots and store them in variables, then render in format such as multiplot(p1, p2, p3, p4, cols=2)

Usage

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

Arguments

...

one or more ggplot2 plot objects

cols

integer number of columns across, defaults to 1

Details

This function is by Winston Chang http://www.cookbook-r.com/Graphs/Multiple_graphs_on_one_page_(ggplot2)/

Examples

1
2
3
4
## Not run: 
multiplot(p1, p2, p3, p4, cols=2)

## End(Not run)

smach/rvisutils documentation built on May 30, 2019, 3:06 a.m.