Shiny module for selecting values for verification groups
Source:R/group_selectors.R
group_selectors.Rd
This module inspects the input data and identifies columns by which the
verification is grouped. A selectInput
dropdown is
created for each group and updated depending on the selections in other
groups. The verification data are filtered to the selected values for each
group.
Arguments
- id
An ID string for the module's UI
- input
input reactive
- output
output reactive
- session
Session from which to make a child scope (the default should almost always be used).
- verif_data
verification data as a reactive value
Examples
library(shiny)
ui <- fluidPage(
fluidRow(
group_selectorsUI("grps")
),
fluidRow(
plotOutput("plt")
)
)
server <- function(input, output, session) {
grp_data <- callModule(group_selectors, "grps", reactive(verif_data_grp))
output$plt <- renderPlot({
plot_point_verif(req(grp_data()), spread)
})
}
if (interactive()) {
shinyApp(ui, server)
}