Re: [R] Using tcltk or other graphical widgets to view zoo time series objects

2010-02-01 Thread Research
Many thanks Liviu! Liviu Andronic wrote: > On 2/1/10, Research wrote: > >> do_something_else = function(playstate) ###Export here mean value of >> sequence playState$env$i### >> >> > > Would this do the trick? > playwith(xyplot(dat[,c(1,i)]), parameters = list(i = 1:100, > do_so

Re: [R] Using tcltk or other graphical widgets to view zoo time series objects

2010-02-01 Thread Liviu Andronic
On 2/1/10, Research wrote: > do_something_else = function(playstate) ###Export here mean value of > sequence playState$env$i### > Would this do the trick? playwith(xyplot(dat[,c(1,i)]), parameters = list(i = 1:100, do_something = function(playState) print(playState$env$i), do_someth

Re: [R] Using tcltk or other graphical widgets to view zoo time series objects

2010-02-01 Thread Felix Andrews
You could either call a function, passing the value, or assign it to a variable in the workspace like .GlobalEnv$foo <- playState$env$i Note that this `i' is one number, not a sequence, so you can't take the mean. -Felix On 1 February 2010 20:57, Research wrote: > Dear Felix, > > Thanks. That

Re: [R] Using tcltk or other graphical widgets to view zoo time series objects

2010-02-01 Thread Research
Dear Felix, Thanks. That was most useful. I am having trouble though exporting values of variables to the R environment from within the playwith. Say I need to do a claculation by setting up an extra button within playwith(xyplot(dat[,c(1,i)]), parameters = list(i = 1:100, do_something =

Re: [R] Using tcltk or other graphical widgets to view zoo time series objects

2010-01-28 Thread j verzani
Research ath.forthnet.gr> writes: > > Dear all, > > I am looking at the R-help entry below: > > http://finzi.psych.upenn.edu/R/Rhelp02/archive/26640.html > > I have a more complicatedt problem. I have a zoo time series frame with > 100+ sequences. > > I want to cycle through them back and f

Re: [R] Using tcltk or other graphical widgets to view zoo time series objects

2010-01-28 Thread Felix Andrews
The playwith package might help, though if I understand the problem correctly, the help(xyplot.zoo) example is not so relevant. If you want to switch between many series you could use a spin-button or somesuch. To execute a function you can create a button. If you have a hundred-column dataset lik

Re: [R] Using tcltk or other graphical widgets to view zoo time series objects

2010-01-28 Thread Gabor Grothendieck
There is an example of using zoo together with the playwith package at the end of the examples section of help(xyplot.zoo) which may address this. On Thu, Jan 28, 2010 at 7:10 AM, Research wrote: > Dear all, > > I am looking at the R-help entry below: > > http://finzi.psych.upenn.edu/R/Rhelp02/ar

[R] Using tcltk or other graphical widgets to view zoo time series objects

2010-01-28 Thread Research
Dear all, I am looking at the R-help entry below: http://finzi.psych.upenn.edu/R/Rhelp02/archive/26640.html I have a more complicatedt problem. I have a zoo time series frame with 100+ sequences. I want to cycle through them back and forth and compare them to the 1st column at any time. I