multiplot | R Documentation |
This function plots multiple ggplot objects passed in as either ..., or to plotlist (as a list of ggplot objects).
multiplot(..., plotlist = NULL, file = NULL, cols = 1, layout = NULL)
... |
Required. Multiple ggplot objects, or a plotlist as a list of ggplot objects |
plotlist |
Optional. A list of ggplot objects. (Default = NULL) |
file |
Optional. A file name to save the plot as, currently non-functional. (Default=NULL) |
cols |
Optional. (Default = 1) |
layout |
Optional. The plot layout as a matrix. eg. if 'layout = 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. |
A ggplot image
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.