-
-
Notifications
You must be signed in to change notification settings - Fork 15
Closed
Labels
Description
In tm_g_scatterplot, we have 2 validation steps to have at least 10 rows per dataset to be able to perform/display the plot. In a case when selecting MULTIPLE only in the row facetting, the plot is not rendered since only one entry is present for MULTIPLE. Is there a reason why we need at least 10 entries here?
library(random.cdisc.data)
#devtools::load_all("../teal/")
#devtools::load_all("../teal.devel/")
devtools::load_all("../teal.modules.general/")
ADSL <- radsl(cached = TRUE)
app <- init(
data = cdisc_data(cdisc_dataset("ADSL", ADSL)),
modules = root_modules(
tm_g_scatterplot(
label = "Scatterplot Choices",
x = data_extract_spec(
dataname = "ADSL",
filter = filter_spec(vars = "COUNTRY", choices = value_choices("ADSL", "COUNTRY"), selected = c("CHN", "USA")),
select = select_spec(
label = "Select variable:",
choices = variable_choices(ADSL, c("AGE", "BMRKR1", "BMRKR2")),
selected = "AGE",
multiple = FALSE,
fixed = FALSE
)
),
y = data_extract_spec(
dataname = "ADSL",
filter = filter_spec(vars = "COUNTRY", choices = value_choices("ADSL", "COUNTRY"), selected = c("USA")),
select = select_spec(
label = "Select variable:",
choices = variable_choices(ADSL, c("AGE", "BMRKR1", "BMRKR2")),
selected = "BMRKR1",
multiple = FALSE,
fixed = FALSE
)
),
color_by = data_extract_spec(
dataname = "ADSL",
select = select_spec(
choices = variable_choices(ADSL),
selected = "REGION1",
multiple = TRUE
)
),
row_facet = data_extract_spec(
dataname = "ADSL",
filter = list(
filter_spec(
vars = choices_selected(variable_choices("ADSL"), "RACE"),
multiple = TRUE
)
)
)
)
)
)
shinyApp(app$ui, app$server)
Provenance:
Creator: mhallal1