Displaying 2 results from an estimated 2 matches for "interactivetkrplot".
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 Feb 27
3
locator(n=0)
locator(n=1) returns the coordinates of the position of the mouse.
But you have to click the left button of the mouse.
How can I determine the mouse position without any click?
Is it possible to extend locator in a way that
locator(n=0) outputs the coordinates at once, without any click event?
TclTk allows us to define very nice animations and demonstrations,
see for example: demo(tkdensity).