Wrapper for `g_mean_general()`. Requires filtering of the datasets (e.g. using SUFFIX in spec.yml)
Usage
g_vs_slide(
adsl,
advs,
arm = "TRT01P",
paramcd = "PARAM",
subtitle = "Plot of Mean and 95% Confidence Limits by Visit.",
...
)
Examples
library(dplyr)
advs_filtered <- eg_advs %>% filter(
PARAMCD == "SYSBP"
)
plot_vs <- g_vs_slide(
adsl = eg_adsl,
advs = advs_filtered,
paramcd = "PARAM",
subtitle_add_unit = FALSE
)
plot_vs
# you want x-axis tilted labels? No problem:
plot_vs +
ggplot2::theme(axis.text.x = ggplot2::element_text(angle = 45, hjust = 1))