multiplot | R Documentation |
Print multiple graphs from ggplot2 on one page.
multiplot(..., plotlist = NULL, file, cols = 1, layout = NULL)
... |
ggplot objects |
plotlist |
Use a list of ggplot objects. |
file |
Use ggplots from file. |
cols |
Number of columns in multiplot. |
layout |
Order layout. |
See : http://www.cookbook-r.com/Graphs/Multiple_graphs_on_one_page_(ggplot2)/
Winston Chang
x <- rnorm(100,100,15) y <- sample(c("Group 1","Group 2"),100,TRUE) p1 <- qplot(x) p2 <- qplot(y) multiplot(p1,p2)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.