pm_grid: Arrange a list of plots in a grid

View source: R/utils.R

pm_gridR Documentation

Arrange a list of plots in a grid

Description

This is a light wrapper around patchwork::wrap_plots() to arrange the plots and patchwork::plot_annotation() to optionally tag levels in the grid of plots.

Usage

pm_grid(x, ncol = 2, tag_levels = NULL, ...)

Arguments

x

a list of plots.

ncol

passed to patchwork::wrap_plots().

tag_levels

passed to patchwork::plot_annotation().

...

passed to patchwork::wrap_plots().

Details

The patchwork package must be installed to use this function.

Examples

data <- pmplots_data_obs()

plot <- wres_cont(data, x = c("WT", "ALB"))

pm_grid(plot)

pm_grid(plot, tag_levels = "a")


metrumresearchgroup/pmplots documentation built on Oct. 15, 2024, noon