Display the AE by subgroups plot as a teal module
Arguments
- label
(
character(1)
)
menu item label of the module in the teal app.- dataname
(
character(1)
)
analysis data used in the teal module, needs to be available in the list passed to thedata
argument ofteal::init()
.- arm_var
(
choices_selected
)
object with all available choices and the pre-selected option for variable names that can be used asarm_var
. Seeteal.transform::choices_selected()
for details.- group_var
(
choices_selected
) subgroups variables. Seeteal.transform::choices_selected()
for details.- plot_height
(
numeric(3)
)
vector to indicate default value, minimum and maximum values.- plot_width
(
numeric(3)
)
vector to indicate default value, minimum and maximum values.- fontsize
(
numeric(1)
ornumeric(3)
)
Defines initial possible range of font-size.fontsize
is set forteal.widgets::optionalSliderInputValMinMax()
which controls font-size in the output plot.
Value
the teal::module()
object.
Examples
# Example using stream (ADaM) dataset
library(scda)
ADSL <- synthetic_cdisc_data("latest")$adsl
ADAE <- synthetic_cdisc_data("latest")$adae
app <- init(
data = cdisc_data(
cdisc_dataset("ADSL", ADSL, code = "ADSL <- synthetic_cdisc_data(\"latest\")$adsl"),
cdisc_dataset("ADAE", ADAE, code = "ADAE <- synthetic_cdisc_data(\"latest\")$adae"),
check = TRUE
),
modules = modules(
tm_g_ae_sub(
label = "AE by Subgroup",
dataname = "ADAE",
arm_var = choices_selected(
selected = "ACTARMCD",
choices = c("ACTARM", "ACTARMCD")
),
group_var = choices_selected(
selected = c("SEX", "REGION1", "RACE"),
choices = c("SEX", "REGION1", "RACE")
),
plot_height = c(600, 200, 2000)
)
)
)
#> [INFO] 2022-06-17 09:55:54.5449 pid:1163 token:[] teal.osprey Initializing tm_g_ae_sub
if (FALSE) {
shinyApp(app$ui, app$server)
}