Description Usage Arguments Value Author(s) Examples
View source: R/pub01_utilityFuncs.R
put multiple ggplot objects on one page with facets.
1 2 |
plotlist |
A list of ggplot objects |
nrow |
Number of rows of plots |
ncol |
Number of columns of plots |
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".
Ruifei.Yin
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")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.