multiplot: Multiple plot function

Description Usage Arguments Details Source See Also

Description

This function is used to plot multiple ggplot objects in a single page. The layout can be flexibly specified.

Usage

1
multiplot(..., plotlist=NULL, cols=1, layout=NULL, labs=list(), labpos=list(c(0.5, 0.02), c(0.02, 0.5)))

Arguments

...

ggplot objects can be passed in ....

plotlist

ggplot objects can also be passed to plotlist (as a list of ggplot objects).

cols

number of columns in the layout.

layout

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

labs

global labels for x- and y-axes.

labpos

positions for the global labels.

Details

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, plot 2 will go in the upper right, and plot 3 will go all the way across the bottom.

Source

http://www.cookbook-r.com/Graphs/Multiple_graphs_on_one_page_(ggplot2)/

See Also

nb.gof.m for simulated data examples. Modifications of global labels made by Scott Chamberlain (StackOverflow)


gu-mi/NBGOF documentation built on Oct. 25, 2020, 3:30 a.m.