multiplot: Multiple ggplots in one Graphics Window

Description Usage Arguments Examples

View source: R/multiplot.R

Description

This function allows the display of multiple ggplots in a single graphics window.

Usage

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

Arguments

x

A vector of numbers representing the panel which a plot will occupy.

Examples

1
2
3
4
5
6
7
8
## Not run: 
#p1 <- ggplot(data, aes(var1, var2)) +
#geom_point()
#p2 <- ggplot(data, aes(var1, var2)) +
#geom_line()
#multiplot(p1, p2, cols = 1)

## End(Not run)

MartinSchweinberger/coedlstatzr documentation built on Nov. 27, 2019, 6:16 a.m.