Description Usage Arguments See Also Examples
A multiple plot function, allowing ggplot2 objects to be plotted together. If the layout is something like matrix(c(1,2,3,3), nrow=2, by.row=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.
Borrowed with thanks from http://wiki.stdout.org/rcookbook/Graphs/Multiple
1 |
... |
|
plotlist |
list of |
file |
character |
cols |
numeric; number of columns in layout |
layout |
numeric; A matrix specifying the layout. If present, 'cols' is ignored |
1 2 3 4 5 6 | ## Not run:
a=ggplot(data.frame(x=1:10,y=1:10))+geom_point(aes(x,y))
multiplot(a,a)
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.