[R] using identify() together with plot () and pixmap()

Friedrich.Leisch@ci.tuwien.ac.at Friedrich.Leisch at ci.tuwien.ac.at
Tue Sep 30 11:07:14 CEST 2003


>>>>> On Tue, 30 Sep 2003 10:16:11 +0200,
>>>>> Christoph Lehmann (CL) wrote:

  > Dear R users
  > I have a two-dimensional array, whose values I want to plot, using the
  > pixmapGrey class. Plotting works fine, and now I would like to be able
  > to identify some of the points in the plot using identify(). But I get
  > the following message while pressing the left mouse button:

  >> plot(pixmapGrey(fmri.vtc[,,slice,volume]))
  >> identify(fmri.vtc[,,slice,volume])
  > warning: no point with 0.25 inches


identify() needs x and y values, you are passing it the z values of
the image.

Maybe you want to use locator()?

.f




More information about the R-help mailing list