Log (or arbitrary) scale on slider input

517 views
Skip to first unread message

Jean-François Moyen

unread,
Apr 9, 2015, 1:02:02 PM4/9/15
to shiny-...@googlegroups.com
Hello,

Trying to have sliders with a log scale, I found the following post on this list:
https://groups.google.com/forum/#!topic/shiny-discuss/5cKioLINT8o

However, the code proposed does not work for me-- using ticks=... does not make any difference in the slider. It is not clear to me whether that is supposed to be enough, or whether I should do javascript changes somewhere? The github example (https://github.com/wch/testapp/tree/master/slider-labels) includes only R code but the post says that the problem is on the java side...

Specifically, whereas the app at http://glimmer.rstudio.com/winstontest/slider-labels/ has a clean set of values at the bottom (0.9, 0.99, etc.), running the same code gives the attached result.

Thanks for your help !
not_sliders.jpg

mbh

unread,
Apr 10, 2015, 9:22:23 AM4/10/15
to shiny-...@googlegroups.com
Hello Jean-François,

There was an update in sliders in shiny v0.11.

Take a look to this post, and try to execute the code in the last post. It may help you :

Matthieu

Jean-François Moyen

unread,
Apr 10, 2015, 11:08:43 AM4/10/15
to shiny-...@googlegroups.com
Hi Matthieu,

Your solution works for me. Thanks !

JF

Jean-François Moyen

unread,
Apr 18, 2015, 9:24:35 AM4/18/15
to shiny-...@googlegroups.com
Hi Matt,

It works -- on first approximation.

But, the code you propose allows only steps of 1 (ie the value is 1, 2, 3 or 4 but nothing in between). I tried
... args <- list(... step=0.02.....)
but this seems to be blissfully ignored by the slider !!

Am I missing something obvious here ?

Thanks


Le vendredi 10 avril 2015 15:22:23 UTC+2, mbh a écrit :
Reply all
Reply to author
Forward
0 new messages