Description Usage Arguments Value Author(s) Examples
View source: R/create.multiplot.R
Align multiple plots in a single arrangement. For now it supports two plots but will expand.
1 | create.multiplot(plotA = NULL, plotB = NULL)
|
plotA |
first ggplot object |
plotB |
second ggplot object |
Returns a grid object with the multiple plot layout.
Richard de Borja <richard.deborja@sickkids.ca>
1 2 3 4 | set.seed(1234)
plotA <- plotting.general::create.scatterplot(data=mtcars, x='disp', y='qsec', regression.line=TRUE, regression.line.error=TRUE)
plotB <- plotting.general::create.scatterplot(data=mtcars, x='disp', y='wt', regression.line=TRUE, regression.line.error=TRUE)
create.multiplot(plotA=plotA, plotB=plotB)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.