Skip to content

[R-gui] Sliders and combo Boxes

7 messages · Uwe Ligges, Wayne.W.Jones at shell.com, Hodgess, Erin +2 more

#
On 16.09.2010 07:45, Hodgess, Erin wrote:
Erin,

which of the hundreds of GUI frameworks are we talking about?


Uwe
#
Hi Erin, 

Why not have a look at the package rpanel. 

See the following examples in the package rpanel:
You could very easily modify the slider to display dates rather than a
number from 1:100. 

Hope this helps, 

Wayne


-----Original Message-----
From: r-sig-gui-bounces at stat.math.ethz.ch
[mailto:r-sig-gui-bounces at stat.math.ethz.ch] On Behalf Of Uwe Ligges
Sent: 16 September 2010 08:48
To: Hodgess, Erin
Cc: r-sig-gui at stat.math.ethz.ch
Subject: Re: [R-gui] Sliders and combo Boxes
On 16.09.2010 07:45, Hodgess, Erin wrote:
dates, rather than the usual 0 - 100, please?
For instance, if you have a list of countries, then you could select
several (or all) of the countries.


Erin,

which of the hundreds of GUI frameworks are we talking about?


Uwe
_______________________________________________
R-SIG-GUI mailing list
R-SIG-GUI at stat.math.ethz.ch
https://stat.ethz.ch/mailman/listinfo/r-sig-gui
#
For the second question, base R has a simple function select.list()
which allows you to do multiple selections.

Regards,
Yihui
--
Yihui Xie <xieyihui at gmail.com>
Phone: 515-294-2465 Web: http://yihui.name
Department of Statistics, Iowa State University
2215 Snedecor Hall, Ames, IA
On Thu, Sep 16, 2010 at 10:47 AM, Hodgess, Erin <HodgessE at uhd.edu> wrote:
#
For the Tk slider and dates, it does not do it directly, but you could set the slider to go across a set of numbers (possibly the Julian date number), suppress the display of the numerical value and instead have a linked label that would show the corresponding date and would update as the slider moves.

The TK combo box does not allow for multiple selection, but the Tk list box does, just set selectmode to either "multiple" or "extended".