create.multiplot: Align multiple plots

Description Usage Arguments Value Author(s) Examples

View source: R/create.multiplot.R

Description

Align multiple plots in a single arrangement. For now it supports two plots but will expand.

Usage

1
create.multiplot(plotA = NULL, plotB = NULL)

Arguments

plotA

first ggplot object

plotB

second ggplot object

Value

Returns a grid object with the multiple plot layout.

Author(s)

Richard de Borja <richard.deborja@sickkids.ca>

Examples

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)

rdeborja/plotting.general documentation built on May 27, 2019, 3:05 a.m.