A wrapper around gridExtra::grid.arrange to plot multiple figures side by side on the same page.

plots(..., n_rows = NULL, n_columns = NULL, tags = FALSE)

Arguments

...

grobs, gtables, ggplot or trellis objects

n_rows

Number of rows to align plots.

n_columns

Number of columns to align plots.

tags

Add tags to your subfigures. Can be FALSE (no tags), TRUE (letter tags) or character vector containing tags labels.

Examples

library(ggplot2) library(see) p1 <- ggplot(iris, aes(x = Petal.Length, y = Sepal.Width)) + geom_point() p2 <- ggplot(iris, aes(x = Petal.Length)) + geom_density() plots(p1, p2)
plots(p1, p2, n_columns = 2, tags = TRUE)
plots(p1, p2, n_columns = 2, tags = c("Fig. 1", "Fig. 2"))