I am looking for a way to have three separate valueBoxes respond to the same selectInput. My dataframe:
region        Diarrhea       Fever     ARI
Afghanistan   78.2          56.4       29.7
Boys          34.1          23.2       15.6
Girls         18.4          12.8       11.2
For selectInput I want Diarrhe, Fever and ARI as options, and I would like to see three Value boxes, one for Afghanistan, one for Boys and one for Girls with the value corresponding to input variable. I cant seem to figure out how to this..
Thanks!
ui <- dashboardPage(
  dashboardHeader(),
  dashboardSidebar(),
  dashboardBody(
    box(title = "Data", status = "primary", solidHeader = T, width = 12,
        fluidPage(
          fluidRow(
            column(2, offset = 0, style = 'padding:1px;', 
                   selectInput(inputId = "selected_data",
                               label = "Indicator",
                               choices = overall[,c(2:4)]))
          )
        )
    ),
    uiOutput("value_box")
  )
)
server <- function(input, output) {
  output$value_box <- renderUI({
    valueBox(input$selected_data,subtitle = "Afghanistan")
  })
}
shinyApp(ui = ui, server = server)
 
     
    
