multiplot: multiplot

Description Usage Arguments Details Value Examples

View source: R/Functions.R

Description

The multiplot function plots multiple ggplots in the same window.

Usage

1
multiplot(..., cols = 1)

Arguments

...

ggplot2 objects, separated by comma.

cols

Integer, specifying the number of plots in one row in the layout.

Details

Plots multiple ggplots in the same window - multiplot(p1,p2,p3,p4, cols=2) is similar to the standard R notation par(mfrow=c(2,2)).

Value

Creates multiple ggplots in same window

Examples

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

## End(Not run)

IntegratedJM documentation built on May 2, 2019, 6:47 p.m.