Displaying 12 results from an estimated 12 matches for "tkscale".
Did you mean:
t_scale
2012 May 24
3
set tkscale by tkentry
Hi, I am working under Windows and I am using R2.11
I want to use tkscale in my GUI. As the interval is quite big, I can't set
the scale to a certain specific value. Therefore I want to add tkentry to
allow the user to set tkscale to a certain value.
Here is the code
library(tcltk)
tt<-tktoplevel()
tkpack(m1<-tkscale(tt,from=306870.00, to=3026741, label=&quo...
2006 Jul 29
1
fancier plotting
.../100
# newy2 <- I1[curx]
newy3 <- I2[curx]
tclvalue(cury) <- paste('x =',curx,' I0=',round(newy,2)
,' I2=',round(newy3,4))
}
}
tkbind(img, '<Motion>', mm)
l1 <- tklabel(tt, textvariable=cury)
s1 <- tkscale(tt, command=f2, from=1, to=length(I0),
variable=left, orient="horiz",label='left',length=700)
s2 <- tkscale(tt, command=f3, from=1, to=length(I0),
variable=right, orient="horiz",label='right',length=700)
b1 <- tkbutton(tt, text='->', com...
2006 Apr 17
0
autoscall the y-axis
...curx]
newy3 <- myData3[curx]
tclvalue(cury) <- paste('x =',curx,' myData=',round(newy,2)
,' myData3=',round(newy3,4))
}
}
tkbind(img, '<Motion>', mm)
l1 <- tklabel(tt, textvariable=cury)
s1 <- tkscale(tt, command=f2, from=1, to=length(myData),
variable=left, orient="horiz",label='left',length=700)
s2 <- tkscale(tt, command=f3, from=1, to=length(myData),
variable=right, orient="horiz",label='right',length=700)
b1 <- tkbutton(tt, text='-&g...
2007 Sep 13
1
smooth scrolling with windows() function
Hi,
I have a large plot that I would like to display in a graphics device with
scroll bars. I therefore decided to use the windows function like so...
mag<- length(tick)
windows(height=mag/8, width=10, rescale="fixed")
However, when I use the scroll bars the device (i guess) is re-drawing the
plot. Is there any way in which I can get it to 'smooth scroll'?
Kind regards,
2010 Jun 11
1
Windows, OSX and Linux: updating a graphic device and double buffering
..."top")
SliderValue <- tclVar("50")
SliderValueLabel <- tklabel(top,text=as.character(tclvalue(SliderValue)))
tkpack(tklabel(top,text="Slider Value : "),SliderValueLabel, side = "left")
tkconfigure(SliderValueLabel,textvariable=SliderValue)
slider <- tkscale(tt, from=0, to=100,
showvalue=F, variable=SliderValue,
resolution=1, orient="horizontal", length = 200)
tkpack(slider, side = "top")
tkconfigure(slider, command=function(...){
state <- unlist(...)
myPlotFn(state)
})
myPlotFn <- function(state) {
plot(1,1, typ...
2006 Mar 20
3
create a gui with a button to change graphic?
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 !
Gael.
2006 Mar 27
3
graphing and scrolling
Dear R users
graphing with plot(x) seams to work for a small length(x), when length(x) is too large it seams to clutter the display, a solution would be to display subsets of x at a time, yet a better way which I hope R supports is to place a sliding bar on the display window to control length(x) and thus the resolution, which will involve auto scaling the y axis as well as automatically
2003 May 06
4
bitmap images in tcltk
Dear R-help list members,
I'm writing a package using tcltk. Thanks to Peter Dalgaard's excellent
work on the tcltk package, almost everything has gone very smoothly. I'm
stymied, however, by the following problem:
I want to incorporate a bitmap image, stored as an xbm file, in a widget.
To take a simple example,
top <- tktoplevel()
tkgrid(tklabel(top,
2004 Mar 19
5
loop through files in a dir
Hello
I have data in many files in a directory, how can I
loop through the files in a given dir in-order-to
build a data.frame?
thanks
2007 Apr 18
5
Problem with ?curve
Dear all R gurus,
I have following syntax:
y = c(1:10)
chippy <- function(x)
{
y[5] = x
sin(cos(t(y)%*%y)*exp(-t(y)%*%y/2))
}
curve(chippy, 1, 20, n=200)
But I am getting error while executing :
Error in xy.coords(x, y, xlabel, ylabel, log) :
'x' and 'y' lengths differ
In addition: Warning message:
number of items to
2005 Jun 24
9
R demos
Hi All,
I am currently preparing some form of slideshow introducing R and its
capabilities for some colleagues. The thing will be about 30 mins, and
I'd like to have some "pretty pictures" and some "amazing facts" (I'm
trying to sell, obviously :)).
Can I ask if it's possible to easily retrieve a gross figure of the
number of functions in R considering the
2007 Aug 28
7
Excel
A common process when data is obtained in an Excel spreadsheet is to save
the spreadsheet as a .csv file then read it into R. Experienced users
might have learned to be wary of dates (as I have) but possibly have not
experienced what just happened to me. I thought I might just share it with
r-help as a cautionary tale.
I received an Excel file giving patient details. Each patient had an ID