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).

Examples

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

## End(Not run)

pocdata/pocr documentation built on Jan. 5, 2022, 9:54 a.m.