Set up

library(pmplots)
library(dplyr)

data <- pmplots_data_id()

A good workflow is to create a character vector of your etas and their names.

etas <- c("ETA1//ETA-CL", "ETA2//ETA-VC", "ETA3//ETA-KA")

etas

Note that very frequently, ETA plots come back as a list of plots, one for each ETA. You can combine them together into a single plot using pm_grid() or patchwork::wrap_plots().

ETA histogram

eta_hist(data,etas) %>% pm_grid()

ETA Pairs

eta_pairs(data, etas)

ETA versus categorical variable

eta_cat(data, x = "STUDYc", y = etas) %>% pm_grid()

ETA versus continuous variable

eta_cont(data, x = "WT", y = etas) %>% pm_grid()


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