Description Usage Arguments Details Value Examples
The multiplot function plots multiple ggplots in the same window.
1 |
... |
ggplot2 objects, separated by comma. |
cols |
Integer, specifying the number of plots in one row in the layout. |
Plots multiple ggplots in the same window - multiplot(p1,p2,p3,p4, cols=2) is similar to the standard R notation par(mfrow=c(2,2)).
Creates multiple ggplots in same window
1 2 3 4 | ## Not run:
multiplot(p1,p2,p3,cols=3)
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.