multiplot | R Documentation |
Stitches together multiple ggplot objects for export-ready graphs
multiplot(..., plotlist = NULL, file, cols = 1, layout = NULL)
... |
ggplot objects |
## Not run:
plot1 = ggplot(data, aes(xvar1, yvar)) +
geom_point()
plot2 = ggplot(data, aes(xvar2, yvar)) +
geom_point()
multiplot(plot1, plot2, cols = 2)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.