Description Usage Arguments Details Source See Also
This function is used to plot multiple ggplot objects in a single page. The layout can be flexibly specified.
1 |
... |
ggplot objects can be passed in .... |
plotlist |
ggplot objects can also be passed to plotlist (as a list of ggplot objects). |
cols |
number of columns in the layout. |
layout |
a matrix specifying the layout. If present, 'cols' is ignored. |
labs |
global labels for x- and y-axes. |
labpos |
positions for the global labels. |
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,
plot 2 will go in the upper right, and plot 3 will go all the way across the bottom.
http://www.cookbook-r.com/Graphs/Multiple_graphs_on_one_page_(ggplot2)/
nb.gof.m
for simulated data examples. Modifications of global labels made by Scott Chamberlain (StackOverflow)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.