View source: R/g_mean_slides.R
g_mean_general | R Documentation |
adapted from https://insightsengineering.github.io/tlg-catalog/stable/graphs/other/mng01.html
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.",
...
)
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' |
Stefan Thoma ('thomas7')
library(dplyr)
advs_filtered <- eg_advs %>% filter(
PARAMCD == "SYSBP"
)
out1 <- g_mean_general(eg_adsl, advs_filtered)
generate_slides(out1, paste0(tempdir(), "/g_mean.pptx"))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.