Description Usage Arguments Value Note
plot multiple ggplots in one plot Multiple plot function # from http://www.cookbook-r.com/Graphs/Multiple_graphs_on_one_page_(ggplot2)/
1 2 |
... |
a list of ggplot objects, e.g. p1, p2 |
plotlist |
a list of ggplot objects, e.g. list(p1, p2) |
cols |
(integer) specify how many columns in the output plot |
layout |
A matrix specifying the layout. If present, 'cols' is ignored. e.g matrix(c(1,2,3,4), nrow=2, byrow=TRUE) |
order |
(bool) default T if T, the order is from top to bottom, then left to right if F, the order is from left to right then top to bottom |
a plot with all the input plots
If the layout is something like matrix(c(1,2,3,4), 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.The same plot can be repeated
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.