lay_out: Arranging ggplots

Description Usage Arguments Author(s) Examples

View source: R/lay_out.R

Description

Provides a layout-like interface for arranging ggplots of different sizes.

Usage

1

Arguments

...

Each argument should be of the form list(plot, rows, columns), where plot is a ggplot (or similar), and rows and columns are consecutive sequences indicating the row and column numbers for plot to span.

Author(s)

Alan D. Jassby and James E. Cloern (originally from the wq package, but since removed from the package).

Examples

1
2
3
4
5
6
7
## Not run: 
gg = ggplot(mtcars, aes(x = hp, y = mpg)) + geom_point()
lay_out(list(gg, 1:2, 1:3),
       list(gg, 3, 1:2),
       list(gg, 3, 3))

## End(Not run)

gregorp/gregor documentation built on May 17, 2019, 8:36 a.m.