multiplot: Print multiple plots inside one

Description Usage Arguments Details Value Author(s)

View source: R/multiplot.R

Description

Take multiple ggplot objects, print them together as you wish and storage the result as pdf file.

Usage

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

Arguments

...

single ggplot plots separated by comas.

plotlist

a list of ggplot plots.

file

a character with the file's names that would be storaged.

cols

the number of columns of the final layout. Number of rows will adapt to it.

layout

a matrix with a custom layout.

Details

Storagement is made by dev.print(pdf,file), so it follows its ways to change directories.

Value

It returns the multiple plot of classes "gtable","gTree","grob","gDesc"

Author(s)

Martin Vicencio


danielfm123/dftools documentation built on July 17, 2021, 1 p.m.