littleDucky
littleDucky

Reputation: 11

Create a selectInput in the form of selection bar for Rshiny

I'm still a beginner to shiny so I'm sorry if my question is counter-intuitive. For my shiny app, I have a selectInput to select different quarter of the year like this

selectInput("qtr", "Quarter", c("First quarter" = "Q1",
                          "Second quarter" = "Q2",
                          "Third quarter" = "Q3",
                          "Fourth quarter" = "Q4"))

My question is: is it possible to create a selectInput in the form of a selection bar like in the example below, as users click to filter date range ? By my understanding, it's neither Radio Buttons or Checkbox Group. Thank you in advance !

Selection bar to choose date range

Upvotes: 0

Views: 33

Answers (1)

Will
Will

Reputation: 11

Similar to pholzm's suggestion I think that radioGroupButtons from the shinywidgets package is well suited to what you want

Upvotes: 1

Related Questions