Seth Roberts wrote:
How can I use R to record the time of a mouse click?
Assuming they are mouse clicks on a plot from locator() or identify()
then its as trivial as this:
plot(1:10)
locator(1); when=date(); print(when)
$x
[1] 3.787584
$y
[1] 1.978947
[1] Mon Mar 12 09:34:07 2007
but
How can I use R to record the time of a mouse click?
--
Seth Roberts
Associate Professor
Psychology Department
University of California Berkeley
[[alternative HTML version deleted]]
__
R-help@stat.math.ethz.ch mailing list
Hi Seth,
On Mar 10, 2007, at 11:55 PM, Seth Roberts wrote:
How can I use R to record the time of a mouse click?
Perhaps ievent.wait() in iplots? (I haven't used this.) I found all
sorts of functions (most of which I couldn't understand) by ?event.
_
Professor