13  Data summary

13.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)

13.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)

13.3 General histogram [cont_hist]

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