search for: rtcltkexampl

Displaying 20 results from an estimated 34 matches for "rtcltkexampl".

Did you mean: rtcltkexamples
2010 Jul 28
2
message box
Hi, I need some help figuring out how to make a pop-up message box appear with error messages when running a script using Rterm. Windows XP R2.10.1 ...possibly with the ability to either continue or abort the script? Thanks. M -- [[alternative HTML version deleted]]
2003 Apr 24
3
R TclTk Examples
Hi, I've been learning how to use R TclTk in Windows over the last few months. I have recently put together a collection of examples of some common widgets and their corresponding R code, at http://bioinf.wehi.edu.au/~wettenhall/RTclTkExamples/ I would be interested in any feedback - Is it useful? Does it contain any significant errors or bad coding style? Does anyone else want to contribute similar examples with screenshots? Regards, James -------------------------------------------------------------------------- James Wettenhal...
2005 Jun 04
2
locator() via tcltk
Hello, I'm trying to write a function using tcltk to interactively modify a plot and gather locator() data. I've read Peter's articles in Rnews, the help pages in tcltk, http://bioinf.wehi.edu.au/~wettenhall/RTclTkExamples/, plus a post in R-help sometime ago, but haven't found a solution. The idea goes something like this: require(tcltk) testplot <- function() { getcoords <- function(...) { locator(5) } x <- 1:1000 y <- rnorm(1000) plot(x, y) base <- tktoplevel() loc.pts <-...
2005 Feb 04
1
Output from function to a tcltk window
I would like to display output to a tcltk window from e.g. a call to summary(). I tried to get something else than oneliners into a text window of the kind found at: http://bioinf.wehi.edu.au/~wettenhall/RTclTkExamples/TextWindows.html But without success. Henrik ------------------------------------------------------------- Henrik Andersson Netherlands Institute of Ecology - Centre for Estuarine and Marine Ecology P.O. Box 140 4400 AC Yerseke Phone: +31 113 577473 h.andersson at nioo.knaw.nl http://www.ni...
2005 Sep 07
1
Using Tk table widget to display matrix
Has anyone written a matrix editor or data.entry() replacement using the Tk table widget? I've been playing around with the examples at http://bioinf.wehi.edu.au/~wettenhall/RTclTkExamples/tktable.html and making some progress, but I'd rather not spend much time on this if someone else has already done it. Jeff
2005 Oct 27
1
tree widget question
I'm trying to create an app using TclTk and R Can someone please explain how I bind a click event to the tree widget (http://bioinf.wehi.edu.au/~wettenhall/RTclTkExamples/TreeWidget.html) Ideally I'd like to bind to particular elements in the tree but tkbind doesnt seem to work. thanks tom
2007 Jun 13
1
Offline ? Searching for James Wettenhall's TclTk Examples
Hi, as a starting point for using Tcl/Tk in R, I used to refer to James Wettenhall's nicely presented TclTk Examples formerly hosted at http://bioinf.wehi.edu.au/~wettenhall/RTclTkExamples/ These days I have been trying to reach these pages but without success. Does anyone know (James, himself, perhaps ;-) whether they are / will be available at some other location --- it would be a pity if not; I found them really useful. Any advice/comment welcome Peter
2008 May 07
1
Aling elmentos into Windows with TK
Hello!! I would like create a window that has diferent element as: http://bioinf.wehi.edu.au/~wettenhall/RTclTkExamples/checkboxes.html http://bioinf.wehi.edu.au/~wettenhall/RTclTkExamples/radiobuttons.html I know as make it, but I don?t know as I could (align the diferent elemnts to left, right, top, bottom) or (put in a coordinates into windows). If anybody know as I could make it, I would like you say me. Th...
2009 Sep 28
2
re trieve user input from an tcl/tk interface
...e will take me by the hand and help me out. I am new to R and cannot figure out what to do here... ... I want to have an User Interface that requests input. I want to save this input to a variable to use it later on. I was able to do this with a modalDiaglog ( http://bioinf.wehi.edu.au/~wettenhall/RTclTkExamples/modalDialog.html like this ) but I cannot figure out how to do this with multiple values to be read. I want to run a rather simple simulation and the user has to be able to set multiple parameters (say, number of trials and stimuli). The onOK-function should then "collect" these parame...
2009 Jul 09
1
Changing text in a tkentry widget
....Name) OnChange <- function() { assign("Name",tclVar("changed name"),thisEnv) } Change.but <-tkbutton(tt,text=" Change ",command=OnChange) tkgrid(Change.but) tkfocus(tt) ################## (much of this is taken from http://bioinf.wehi.edu.au/~wettenhall/RTclTkExamples/editboxes.html) Now, I thought the whole point of the textvariable argument was to change the content of the tkentry widget. But, as you can see by running this code, changing the Name variable using assign does not change the content of the widget. Is there a function to update the content?...
2011 Jun 03
2
tkrplot Newbie
Hello, I am trying to write a tcltk based program that plots/manipulates xts/xoo time series objects. I have the code I used from ## http://bioinf.wehi.edu.au/~wettenhall/RTclTkExamples/tkrplot.html : ## require(quantmod) require(tcltk) library(tkrplot) Sys.setenv(TZ="GMT") getSymbols("^GSPC", from = "1960-01-01") Myhscale <- 2.5 # Horizontal scaling Myvscale <- 1.25 # Vertical scaling plotFunction <- function(x) { params <...
2009 Jan 20
1
tclarray with embedded spaces in data
..., variable= mytkarray) but if I include character strings with embedded spaces, I get braces appearing in the table. I can remove them using a non-R tclarray, (the difference between the first example of http://www.sciviews.org/_rgui/tcltk/Tktable.html and http://bioinf.wehi.edu.au/~wettenhall/RTclTkExamples/tktable.html - the result of the second of which includes the braces (although not in the image provided!) and that of the first does not - but this seems undesirably complicated. Am I missing something simple? Any insights would be gratefully received, Regards, Ruth -- Ruth M. Ripley,...
2004 Apr 23
4
Tcl Tk table
Hi I've a problem with the following example: library(tcltk) .Tcl("array unset tclArray") myRarray <- matrix(1:1000, ncol=20) for (i in (0:49)) for (j in (0:19)) .Tcl(paste("set tclArray(",i,",",j,") ",myRarray[i+1,j+1],sep="")) tt<-tktoplevel() table1 <- tkwidget(tt,"table",variable="tclArray",
2003 Nov 28
1
tcltk extension: documentation?
Hi all, i'm searching for a tutorial on the tcltk extension to R. I've looked at the pages linked to the R web site, and found the examples extremely useful, but I'd like something more. Does anyone know about other documents regarding this subject? Thank you very much ciao luca
2004 Feb 01
1
interactive 2-D plot interrogation
Greetings Friends: I am trying to find a widget or some other method to let me interrogate a 2-D image using the mouse. I have a data.frame that I can visualize using image() in R. I would like to point to a pixel and have its coordinates displayed. I've read Peter Dalgaard's primer on R-Tcl/Tk, R-News, 1(3):27-31, and his update R-News2(3):25-27, but am still struggling. Can anyone
2004 Oct 29
1
winDialog (equivalent) on Unix anyone ?
Hi, We have a few R scripts, that have a minimalistic GUI Interface using winDialog() calls. Is there any cross-plattform equivalent we can port to, such that the code will run on both Windows and Unix ? I thought about either tcltk or gtk Stuff. I was astonished that I couldn't find anything similar that had been implemented since the 0.99 release, or do I miss something obvius ? Yours,
2005 Aug 11
1
tcltk programming guide
Dear List, I'm looking for some documentation about the R tcltk package The one I found in the help doesn't look exaustive, I need information on the use of the single tk widget, maybe with some examples thank you, simone gabbriellini
2006 Feb 02
2
Request for users of my R-Tcl/Tk examples, limmaGUI or affylmGUI
...sary. But I can't see what harm it could do... I am just wondering approximately how many people use / have used some of the R stuff I've developed (and in how many countries). In particular I'm talking about the R-Tcl/Tk examples I've put at http://bioinf.wehi.edu.au/~wettenhall/RTclTkExamples/ and/or my two BioC packages limmaGUI and affylmGUI (now maintained by Keith Satterley), and/or the IBC2004 and JSM2005 microarray analysis course websites. If it's not too much trouble, could you please tell me [OFF THE LIST] if you use / have used any of these things (otherwise don't r...
2008 Jun 16
0
Display a jpeg inside a widget which already has text
Hi I am trying to insert a jpeg into a widget I have created. I have used this link http://bioinf.wehi.edu.au/~wettenhall/RTclTkExamples/showImage.html to display a jpeg inside a newly created widget but would like some info on how to insert into a pre existing widget. This is my code below for my first widget. tt<-tktoplevel() fontHeading2 <- tkfont.create(family="arial",size=16, slant="italic") fontH...
2006 Jul 05
1
tcl/tk with R
Greetings: I would like to use tcl/tk with R, and have read "A Primer on the R-Tcl/Tk Package" by Peter Dalgaard in Rnews, Volume 1/3, September 2001. Are there more recent do-it-yourself instructions available? I have been unsuccessful with the example in the tcltk2 package due to a syntax error. I think that I have isolated the problem to this code snippet: for (i in