Arrange a named list of plots
pm_with(x, expr, tag_levels = NULL)
a named list of gg objects to arrange.
a patchwork
formula for arranging plots in x
.
passed to patchwork::plot_annotation()
.
data <- pmplots_data_id()
etas <- paste0("ETA", 1:3)
covs <- c("WT", "AGE", "ALB")
x <- eta_covariate_list(data, x = covs, y = etas, transpose = TRUE)
pm_with(x$WT, (ETA1 + ETA2) / ETA3)
#> `geom_smooth()` using formula = 'y ~ x'
#> `geom_smooth()` using formula = 'y ~ x'
#> `geom_smooth()` using formula = 'y ~ x'