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)
}
Run the code above in your browser using DataLab