Skip to content
Prev 44956 / 398528 Next

locator(n=0)

There is nothing in the design of R base graphics to report the current 
position of the mouse without clicking.  Indeed, the graphics model does 
not presume a mouse and pointer (and probably dates from the days of 
cross-hairs manipulated with thumb wheels), and could conceivably use a 
touchscreen, for example.

The current graphics driver model is not really extensible either,
although Paul Murrell is working on improving this. We can't add features
to one or two graphical devices without changing the API and all the
devices (not all of which are in the R sources).
On Fri, 27 Feb 2004, Peter Wolf wrote:

            
But Tcl/Tk is a different sort of system, designed for interactive windows 
not plotting graphs.  You could do all this in Tcl/Tk (and there is no 
reason not to have an R graphics device in a Tcl/Tk canvas), or in a 
Java-based graphics device.