Shiny Slider Customized Values

前端 未结 4 1712
一向
一向 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:46

    Although Shiny gives options to customize the slider Input,I do not think there is a way to to get output in the form (1,5,10...).This is because the difference between your 1st and 2nd point is 4 and thereafter it is 5 which will be inconsistent with the way step parameter works.Step can only generate numbers based on constant differences between slider inputs.

提交回复
热议问题