tm_g_pp_vitals {teal.modules.clinical} | R Documentation |
teal Module: Patient Profile Vitals Plot
Description
This module produces a patient profile vitals ggplot2::ggplot()
type plot using ADaM datasets.
Usage
tm_g_pp_vitals(
label,
dataname = "ADVS",
parentname = "ADSL",
patient_col = "USUBJID",
paramcd = NULL,
aval = lifecycle::deprecated(),
aval_var = NULL,
xaxis = NULL,
font_size = c(12L, 12L, 25L),
plot_height = c(700L, 200L, 2000L),
plot_width = NULL,
pre_output = NULL,
post_output = NULL,
ggplot2_args = teal.widgets::ggplot2_args()
)
Arguments
label |
( |
dataname |
( |
parentname |
( |
patient_col |
( |
paramcd |
( |
aval |
|
aval_var |
( |
xaxis |
( |
font_size |
( |
plot_height |
( |
plot_width |
( |
pre_output |
( |
post_output |
( |
ggplot2_args |
( |
Details
This plot supports horizontal lines for the following 6 PARAMCD
levels when they are present in dataname
:
"SYSBP"
, "DIABP"
, "TEMP"
, "RESP"
, "OXYSAT"
.
Value
a teal_module
object.
Examples
library(nestcolor)
ADSL <- tmc_ex_adsl
ADVS <- tmc_ex_advs
app <- init(
data = cdisc_data(
ADSL = ADSL,
ADVS = ADVS,
code = "
ADSL <- tmc_ex_adsl
ADVS <- tmc_ex_advs
"
),
modules = modules(
tm_g_pp_vitals(
label = "Vitals",
dataname = "ADVS",
parentname = "ADSL",
patient_col = "USUBJID",
plot_height = c(600L, 200L, 2000L),
paramcd = choices_selected(
choices = variable_choices(ADVS, "PARAMCD"),
selected = "PARAMCD"
),
xaxis = choices_selected(
choices = variable_choices(ADVS, "ADY"),
selected = "ADY"
),
aval_var = choices_selected(
choices = variable_choices(ADVS, "AVAL"),
selected = "AVAL"
)
)
)
)
if (interactive()) {
shinyApp(app$ui, app$server)
}