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.

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)
#> `geom_smooth()` using formula = 'y ~ x'
#> `geom_smooth()` using formula = 'y ~ x'


pm_grid(plot, tag_levels = "a")
#> `geom_smooth()` using formula = 'y ~ x'
#> `geom_smooth()` using formula = 'y ~ x'