multiplot: Multiple plot function

View source: R/multiplot.R

multiplotR Documentation

Multiple plot function

Description

This function plots multiple ggplot objects passed in as either ..., or to plotlist (as a list of ggplot objects).

Usage

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

Arguments

...

Required. Multiple ggplot objects, or a plotlist as a list of ggplot objects

plotlist

Optional. A list of ggplot objects. (Default = NULL)

file

Optional. A file name to save the plot as, currently non-functional. (Default=NULL)

cols

Optional. (Default = 1)

layout

Optional. The plot layout as a matrix. eg. if 'layout = matrix(c(1,2,3,3), nrow=2, byrow=TRUE)', then plot 1 will go in the upper left, 2 will go in the upper right, and 3 will go all the way across the bottom.

Value

A ggplot image


Sage-Bionetworks/metanetwork documentation built on April 27, 2022, 7:42 a.m.