[R] create a gui with a button to change graphic?

2006-03-20 Thread Gael de Lannoy
Hello everybody, I am wondering if it is possible to create a gui to plot a time series that is very big, it's an EEG signal of 20mins. What I would like to do is plot the first 5mins, then have a button on the gui that plots the next 5mins when pushed. Is it possible? Thanks in advance !

[R] create a gui with a button to change graphic?

2006-03-20 Thread Antonio, Fabio Di Narzo
See demos in the tcltk package. I remember there was some example of interactive graphics, with buttons to change graphical parameters. You can start from there... Antonio, Fabio Di Narzo. 2006/3/20, Gael de Lannoy [EMAIL PROTECTED]: Hello everybody, I am wondering if it is possible to

Re: [R] create a gui with a button to change graphic?

2006-03-20 Thread bogdan romocea
Adapt the function below to suit your needs. If you really want to plot 5 minutes at a time, round the time series to the last MM:00 times (where MM is in 5*0:11) and have idx below loop over them. splitplot - function(x,points) { boundaries - c(1,points*1:floor(length(x)/points),length(x)) for

Re: [R] create a gui with a button to change graphic?

2006-03-20 Thread Gregory Snow
Gael, Try the following to get you started: library(tkrplot) y - rnorm(1, 10, 2) + 5*sin( (1:1)/1000 ) tt - tktoplevel() left - tclVar(1) oldleft - tclVar(1) right - tclVar(100) f1 - function(){ lleft - as.numeric(tclvalue(left)) rright - as.numeric(tclvalue(right))