Re: [R] cursor position on image

2008-01-08 Thread Prof Brian Ripley
On Tue, 8 Jan 2008, Peter Hietz wrote: > Hi, > > I am using the EBImage package for image display and analysis and want > to read the cursor (mouse) position on the image. The function > "locator()" would be ideal, but this appears to work only on plots, not > images. > >> a <- Image((0:(w^2))/

[R] cursor position on image

2008-01-08 Thread Peter Hietz
Hi, I am using the EBImage package for image display and analysis and want to read the cursor (mouse) position on the image. The function "locator()" would be ideal, but this appears to work only on plots, not images. > a <- Image((0:(w^2))/w^2, c(w,w)) > if ( interactive() ) display(a) > loca