Skip to content
Prev 44968 / 398528 Next

locator(n=0)

Peter,
On Fri, Feb 27, 2004 at 10:16:54AM +0100, Peter Wolf wrote:
James Wettenhall has an example of how to do that using tcltk. The window
manager gives us back x,y pixel coordinates, which can be converted back to
plot coordinates using par("usr") and par("plt") -- it's pretty much all
there on James' example page at
  http://bioinf.wehi.edu.au/~wettenhall/RTclTkExamples/InteractiveTkrPlot.html
  
Hth, Dirk