multiplot: Multiple ggplots in a single plot

multiplotR Documentation

Multiple ggplots in a single plot

Description

Print multiple graphs from ggplot2 on one page.

Usage

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

Arguments

...

ggplot objects

plotlist

Use a list of ggplot objects.

file

Use ggplots from file.

cols

Number of columns in multiplot.

layout

Order layout.

Note

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

Author(s)

Winston Chang

Examples

x <- rnorm(100,100,15)
y <- sample(c("Group 1","Group 2"),100,TRUE)
p1 <- qplot(x)
p2 <- qplot(y)
multiplot(p1,p2)

chavezlab/csnl documentation built on June 12, 2022, 10:09 a.m.