multiplot: multiplot

Description Usage Arguments Details Value Author(s) Examples

View source: R/pub01_utilityFuncs.R

Description

put multiple graphs on one page.

Usage

1
multiplot(..., plotlist = NULL, ncol = 1)

Arguments

...

Plot objects

plotlist

A list of plot objects

ncol

Number of columns of plots

Details

It can take any number of plot objects as arguments, or if it can take a list of plot objects passed to plotlist. First, set up the plots and store them, but don't render them yet. The details of these plots aren't important; all you need to do is store the plot objects in variables.Once the plot objects are set up, we can render them with multiplot. See details in http://wiki.stdout.org/rcookbook/Graphs/Multiple

Value

a page of plots

Author(s)

Ruifei.Yin

Examples

1
2
3
4
5
p1 <- qplot(y=1:4)
p2 <- qplot(1:5,10:14)
p3 <- qplot(4:30)
p4 <- qplot(3:9,4:10)
multiplot(p1, p2, p3, p4, ncol=2)

raphael210/QUtility documentation built on May 26, 2019, 11:05 p.m.