pm_with: Arrange a named list of plots

View source: R/utils.R

pm_withR Documentation

Arrange a named list of plots

Description

Arrange a named list of plots

Usage

pm_with(x, expr, tag_levels = NULL)

Arguments

x

a named list of gg objects to arrange.

expr

a patchwork formula for arranging plots in x.

tag_levels

passed to patchwork::plot_annotation().

Examples

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)


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