multiplot_facet: multiplot_facet

Description Usage Arguments Value Author(s) Examples

View source: R/pub01_utilityFuncs.R

Description

put multiple ggplot objects on one page with facets.

Usage

1
2
multiplot_facet(plotlist, nrow = NULL, ncol = NULL, scales = "fixed",
  shrink = TRUE, as.table = TRUE, drop = TRUE)

Arguments

plotlist

A list of ggplot objects

nrow

Number of rows of plots

ncol

Number of columns of plots

Value

a ggplot object, with factets of elements of plotlist. The naming rules of the facet label is: if plotlist have names, then use them; else if the element of plotlist have titles, then use them; else, use "plot_1" to "plot_n".

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_facet(list(p1, p2, p3, p4), ncol=2, scales="free")

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