12  Data summary

12.1 General boxplot [pm_box]

pm_box(id, x = "STUDYc", y = "WT")

This is also called cont_cat().

Vectorized

covs <- c("WT", "AGE", "ALB")

pm_box(id, x = "STUDYc", y = covs) %>%
  pm_grid(ncol = 3)

12.2 General scatter plot [pm_scatter]

pm_scatter(id, x = "WT", y = "CRCL")

This is also called cont_cont().

Vectorized

covs <- c("SCR", "AGE", "ALB")

pm_scatter(id, x = "WT", y = covs) %>%
  pm_grid(ncol = 3)

12.3 General histogram [cont_hist]

cont_hist(id, x = "WT", bins = 20)