Shiny Slider Customized Values

前端 未结 4 1683
一向
一向 2020-12-19 12:53

I am trying to set custom values for shiny slider (1,5,10,15,20,25 and 30). I tried step but then the results either (0,5,10,15,20,25,30) or (1,6,11,16,21,26,31

4条回答
  •  隐瞒了意图╮
    2020-12-19 13:41

    Depending on the need to have a slider, to have inputs with variable breaks you could use one of the other options, like

    selectInput

    https://shiny.rstudio.com/reference/shiny/latest/selectInput.html

    or even checkboxInput

    https://shiny.rstudio.com/reference/shiny/latest/checkboxInput.html

提交回复
热议问题