plot_grid: Create grid of plots

View source: R/utils-plot.R

plot_gridR Documentation

Create grid of plots

Description

Create grid of ggplot2 objects, based on a data frame with scenarios.

Usage

plot_grid(
  plots,
  scenarios,
  cond_x = "x",
  cond_y = "y",
  cond_x_units = NULL,
  cond_y_units = NULL,
  append_title = FALSE,
  ...
)

Arguments

plots

List with ggplot2 objects.

scenarios

Data frame with scenarios, must contain only 2 variables.

cond_x

Condition on the x-axis.

cond_y

Condition on the y-axis.

cond_x_units

Units for condition on the x-axis.

cond_y_units

Units for condition on the y-axis.

...

Optional parameters for gridExtra::grid.arrange.

Value

List of gridded ggplot2 objects.


special-uor/ageR documentation built on July 10, 2024, 10:08 p.m.