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, ...)
a list of plots.
passed to patchwork::wrap_plots()
.
passed to patchwork::plot_annotation()
.
passed to patchwork::wrap_plots()
.
The patchwork package must be installed to use this function.
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'