Description Usage Arguments Layout Reference
View source: R/fun-multiplot.R
Print multiple ggplot plots on a single page. This is NOT splitting a single plot. Unlike with facetting, the plots can be completely different.
1 |
... |
plot objects |
plotlist |
list of plot objects |
file |
path to file to print the plots into (?) |
cols |
number of columns to arrange the plots into |
layout |
matrix specifying the layout as explained in |
Layout specification by matrix works exactly like with graphics::layout. If the layout is something like matrix(c(1, 2, 3, 3), nrow = 2, byrow = TRUE), then plot 1 will go in the upper left, 2 will go in the upper right, and 3 will go all the way across the bottom.
R Graphics Cookbook by Winston Chang
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.