g_vs_slide: Plot mean values of VS

View source: R/g_vs_slide.R

g_vs_slideR Documentation

Plot mean values of VS

Description

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.",
  ...
)

Arguments

adsl

ADSL data

advs

ADVS data

arm

'"TRT01P"' by default

paramcd

Which variable to use for plotting. By default '"PARAM"'

subtitle

character scalar forwarded to g_lineplot

...

| Gets forwarded to 'tern::g_lineplot()'. This lets you specify additional arguments to 'tern::g_lineplot()'

Author(s)

Stefan Thoma ('thomas7')

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
) +
  ggplot2::theme(axis.text.x = ggplot2::element_text(angle = 45, hjust = 1))
# makes editable plots
generate_slides(plot_vs, paste0(tempdir(), "/g_vs.pptx"), fig_editable = TRUE)
# not editable plots, which appear as images
generate_slides(plot_vs, paste0(tempdir(), "/g_vs.pptx"), fig_editable = FALSE)


autoslider.core documentation built on Aug. 8, 2025, 6:44 p.m.