Plot mean values general function used by wrappers `g_vs_slide`,`g_lb_slide`, & `g_eg_slide`
Source:R/g_mean_slides.R
      g_mean_general.Rdadapted 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
character) vector of variable names indfwhich should include:x(string)
name of x-axis variable.y(string)
name of y-axis variable.group_var(stringorNULL)
name of grouping variable (or strata), i.e. treatment arm. Can beNAto indicate lack of groups.subject_var(stringorNULL)
name of subject variable. Only applies ifgroup_varis not NULL.paramcd(stringorNA)
name of the variable for parameter's code. Used for y-axis label and plot's subtitle. Can beNAifparamcdis not to be added to the y-axis label or subtitle.y_unit(stringorNA)
name of variable with units ofy. Used for y-axis label and plot's subtitle. Can beNAif y unit is not to be added to the y-axis label or subtitle.facet_var(stringorNA)
name of the secondary grouping variable used for plot faceting, i.e. treatment arm. Can beNAto indicate lack of groups.
 - by_vars
 variables to merge the two datasets by
- subtitle
 character scalar forwarded to g_lineplot
- ...
 additional arguments passed to `tern::g_lineplot`