multiplot function

Printing multiple ggplots in oone file

Printing multiple ggplots in oone file

Print multiple ggplots in one file. Slightly modified for packaging from the original version in the web.

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

Arguments

  • ...: A list of ggplot objects separated by commas.
  • plotlist: A list of ggplot objects
  • cols: The number of columns.
  • layout: A matrix specifying the layout. If present, 'cols' is ignored.

Returns

A plot object

Author(s)

http://www.cookbook-r.com/Graphs/Multiple_graphs_on_one_page_(ggplot2)/