Description Usage Arguments Value Source See Also Examples
A simplistic way to create multi-panel ggplot figures when facet won't work.
1 |
... |
One or more plot objects to be plotted |
plotlist |
A list of plots, if not passed as ... |
cols |
Number of columns the multi-panel plot will have. |
layout |
An option matrix describing the layout of the multi-panel plot. |
A multi-panel plot composed of the input plots.
http://www.cookbook-r.com/Graphs/Multiple_graphs_on_one_page_(ggplot2)/
The gtable package https://github.com/hadley/gtable has much more advanced multiplot layout capabilities, but is more complex.
1 2 3 | # plot_a <- qplot(data = dat, geom = "hist")
# plot_b <- qplot(data = dat2, x = V1, y = V2, geom = "jitter")
# multiplot(plot_a, plot_b, cols = 2)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.