g_mean_general {autoslider.core} | R Documentation |
Plot mean values general function used by wrappers 'g_vs_slide','g_lb_slide', & 'g_eg_slide'
Description
adapted from https://insightsengineering.github.io/tlg-catalog/stable/graphs/other/mng01.html
Usage
g_mean_general(
adsl,
data,
variables = control_lineplot_vars(group_var = "TRT01P"),
by_vars = c("USUBJID", "STUDYID"),
subtitle = "Plot of Mean and 95% Confidence Limits by Visit.",
...
)
Arguments
adsl |
ADSL dataset |
data |
dataset containing the variable of interest in PARAMCD and AVAL |
variables |
(named
|
by_vars |
variables to merge the two datasets by |
subtitle |
character scalar forwarded to g_lineplot |
... |
additional arguments passed to 'tern::g_lineplot' |
Author(s)
Stefan Thoma ('thomas7')
Examples
library(dplyr)
advs_filtered <- eg_advs %>% filter(
PARAMCD == "SYSBP"
)
g_mean_general(eg_adsl, advs_filtered)