Skip to contents

Stitches together multiple ggplot objects for export-ready graphs

Usage

multiplot(..., plotlist = NULL, file, cols = 1, layout = NULL)

Arguments

...

ggplot objects

Examples

if (FALSE) {
plot1 = ggplot(data, aes(xvar1, yvar)) +
  geom_point()
plot2 = ggplot(data, aes(xvar2, yvar)) +
  geom_point()
multiplot(plot1, plot2, cols = 2)
}