Learn R Programming

teal.modules.clinical (version 0.10.0)

template_adverse_events: Template: Patient Profile Adverse Events Table and Plot

Description

Creates a valid expression to generate an adverse events table and ggplot2::ggplot() plot using ADaM datasets.

Usage

template_adverse_events(
  dataname = "ANL",
  aeterm = "AETERM",
  tox_grade = "AETOXGR",
  causality = "AEREL",
  outcome = "AEOUT",
  action = "AEACN",
  time = "ASTDY",
  decod = NULL,
  patient_id,
  font_size = 12L,
  ggplot2_args = teal.widgets::ggplot2_args()
)

Value

a list of expressions to generate a table or plot object.

Arguments

dataname

(character)
analysis data used in teal module.

aeterm

(character)
name of the reported term for the adverse event variable.

tox_grade

(character)
name of the standard toxicity grade variable.

causality

(character)
name of the causality variable.

outcome

(character)
name of outcome of adverse event variable.

action

(character)
name of action taken with study treatment variable.

time

(character)
name of study day of start of adverse event variable.

decod

(character)
name of dictionary derived term variable.

patient_id

(character)
patient ID.

font_size

(numeric)
font size value.

ggplot2_args

(ggplot2_args) optional
object created by teal.widgets::ggplot2_args() with settings for the module plot. The argument is merged with option teal.ggplot2_args and with default module arguments (hard coded in the module body). For more details, see the vignette: vignette("custom-ggplot2-arguments", package = "teal.widgets").

See Also

tm_g_pp_adverse_events()