I'm looking to create a slider input with non-standard distances between steps. For instance, a slider from 0 to 100, with choices at 0, 10, 40, 50, 60, 90, and 100 where the spacing is reflective of their value. The following encodes a slider input from 0 to 100, but with selectable steps every 10.
sliderInput( inputId="nonStandardSteps", label="Input", min=0, max=100, value=0, step=10 )
And this encodes a slider text input, which allows for only the necessary choices to be selected, but without the proper spacing between them.
sliderTextInput( inputId="nonStandardSteps", label="Input", choices=c(0,10,40,50,60,90,100) )
I essentially need to combine these, with the spacing between values of the first option, and the ability to only select the chosen values from the second. Has anyone done something like this before, or know of a good method to resolve this? Any help would be appreciated.