Re: [R] identify() - image()

About this list Date view Thread view Subject view Author view Attachment view

From: Thomas Petzoldt (thpe@hhbio.wasser.tu-dresden.de)
Date: Thu 27 May 2004 - 03:51:03 EST


Message-id: <40B4D907.4060709@hhbio.wasser.tu-dresden.de>

javier garcia - CEBAS wrote:
> Hi all;
> Just to ask if you know about any available function in R to identify points
> in a image plotted in X11. Something like the function identify(), but able
> to extract (x,y,value) groups from the image.

Maybe, something like that?

z <- matrix(runif(100),10,10)
image(list(x = 0:9, y = 0:9, z = z))
p <- locator(1)
z[round(p$x), round(p$y)]

Thomas P.

______________________________________________
R-help@stat.math.ethz.ch mailing list
https://www.stat.math.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html


About this list Date view Thread view Subject view Author view Attachment view

This archive was generated by hypermail 2.1.3 : Mon 31 May 2004 - 23:05:13 EST