An embedded and charset-unspecified text was scrubbed... Name: not available URL: <https://stat.ethz.ch/pipermail/r-sig-gui/attachments/20100916/30fa68c5/attachment.pl>
[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:
Dear R GUI People: I have 2 questions please: a. Is there a function for a slider that runs from a sequence of dates, rather than the usual 0 - 100, please? b. Is there a combo box which allows for multiple selections, 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
Thanks in advance! Sincerely, Erin Erin M. Hodgess, PhD Associate Professor Department of Computer and Mathematical Sciences University of Houston - Downtown mailto: hodgesse at uhd.edu [[alternative HTML version deleted]]
_______________________________________________ R-SIG-GUI mailing list R-SIG-GUI at stat.math.ethz.ch https://stat.ethz.ch/mailman/listinfo/r-sig-gui
Hi Erin, Why not have a look at the package rpanel. See the following examples in the package rpanel:
library(rpanel) ?rp.listbox ?rp.slider
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:
Dear R GUI People: I have 2 questions please: a. Is there a function for a slider that runs from a sequence of
dates, rather than the usual 0 - 100, please?
b. Is there a combo box which allows for multiple selections, 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
Thanks in advance! Sincerely, Erin Erin M. Hodgess, PhD Associate Professor Department of Computer and Mathematical Sciences University of Houston - Downtown mailto: hodgesse at uhd.edu [[alternative HTML version deleted]]
_______________________________________________ R-SIG-GUI mailing list R-SIG-GUI at stat.math.ethz.ch https://stat.ethz.ch/mailman/listinfo/r-sig-gui
_______________________________________________ R-SIG-GUI mailing list R-SIG-GUI at stat.math.ethz.ch https://stat.ethz.ch/mailman/listinfo/r-sig-gui
An embedded and charset-unspecified text was scrubbed... Name: not available URL: <https://stat.ethz.ch/pipermail/r-sig-gui/attachments/20100916/690716ee/attachment.pl>
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:
Hi Wayne and Uwe: The rp.slider will be perfect. The rp.listbox will only let you select one option. ?My ultimate goal is to have something that will let you select several options, if possible I've been looking in the Tcl/tk options. Thanks, Erin Erin M. Hodgess, PhD Associate Professor Department of Computer and Mathematical Sciences University of Houston - Downtown mailto: hodgesse at uhd.edu
________________________________ From: Wayne.W.Jones at shell.com [mailto:Wayne.W.Jones at shell.com] Sent: Thu 9/16/2010 3:11 AM To: ligges at statistik.tu-dortmund.de; Hodgess, Erin Cc: r-sig-gui at stat.math.ethz.ch Subject: RE: [R-gui] Sliders and combo Boxes Hi Erin, Why not have a look at the package rpanel. See the following examples in the package rpanel: library(rpanel) ?rp.listbox ?rp.slider 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: Dear R GUI People: I have 2 questions please: a. Is there a function for a slider that runs from a sequence of dates, rather than the usual 0 - 100, please? b. Is there a combo box which allows for multiple selections, 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 Thanks in advance! Sincerely, Erin Erin M. Hodgess, PhD Associate Professor Department of Computer and Mathematical Sciences University of Houston - Downtown mailto: hodgesse at uhd.edu ? ? ? [[alternative HTML version deleted]] _______________________________________________ R-SIG-GUI mailing list R-SIG-GUI at stat.math.ethz.ch https://stat.ethz.ch/mailman/listinfo/r-sig-gui _______________________________________________ R-SIG-GUI mailing list R-SIG-GUI at stat.math.ethz.ch https://stat.ethz.ch/mailman/listinfo/r-sig-gui ? ? ? ?[[alternative HTML version deleted]] _______________________________________________ R-SIG-GUI mailing list R-SIG-GUI at stat.math.ethz.ch https://stat.ethz.ch/mailman/listinfo/r-sig-gui
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".
Gregory (Greg) L. Snow Ph.D. Statistical Data Center Intermountain Healthcare greg.snow at imail.org 801.408.8111 > -----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 Hodgess, Erin > Sent: Wednesday, September 15, 2010 11:46 PM > To: r-sig-gui at stat.math.ethz.ch > Subject: [R-gui] Sliders and combo Boxes > > Dear R GUI People: > > I have 2 questions please: > a. Is there a function for a slider that runs from a sequence of dates, > rather than the usual 0 - 100, please? > b. Is there a combo box which allows for multiple selections, please? > For instance, if you have a list of countries, then you could select > several (or all) of the countries. > > Thanks in advance! > Sincerely, > Erin > > > Erin M. Hodgess, PhD > Associate Professor > Department of Computer and Mathematical Sciences > University of Houston - Downtown > mailto: hodgesse at uhd.edu > > > [[alternative HTML version deleted]] > > _______________________________________________ > R-SIG-GUI mailing list > R-SIG-GUI at stat.math.ethz.ch > https://stat.ethz.ch/mailman/listinfo/r-sig-gui
An embedded and charset-unspecified text was scrubbed... Name: not available URL: <https://stat.ethz.ch/pipermail/r-sig-gui/attachments/20100917/50359cd1/attachment.pl>