Creates a valid expression to generate a patient profile vitals ggplot2::ggplot() plot using ADaM datasets.
template_vitals(
dataname = "ANL",
paramcd = "PARAMCD",
paramcd_levels = c("SYSBP", "DIABP", "PUL", "RESP", "OXYSAT", "WGHT", "TEMP"),
xaxis = "ADY",
aval_var = "AVAL",
patient_id,
font_size = 12L,
ggplot2_args = teal.widgets::ggplot2_args()
)a list of expressions to generate a table or plot object.
(character)
analysis data used in teal module.
(character)
name of the parameter code variable.
(character)
vector of all levels of paramcd.
(character)
name of the time variable to put on the x-axis.
(character)
name of the analysis value variable.
(character)
patient ID.
(numeric)
font size value.
(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").
tm_g_pp_vitals()