Re: [R] identify with image

2003-09-03 Thread Roger Bivand
On Tue, 2 Sep 2003, Roger Bivand wrote: The simplest case is: plot(1:10) xy - list() identify(xy, n=1) Segmentation fault but identify(xy) Error in identify.default(xy) : invalid number of points in identify I'm not sure, but adding a check against zero-length and/or NULL x and or y

[R] identify with image

2003-09-02 Thread kjetil brinchmann halvorsen
Hola! I will want to identify pixels in an image with the mouse, for so getting the image data from the matrix(es), for use in subsequent discriminant analysis. But the following bombs R: (windows XP, rw1071) str(baboon) list() - attr(*, size)= int [1:2] 512 512 - attr(*, cellres)= num

Re: [R] identify with image

2003-09-02 Thread Kenneth Cabrera
Hi, Dr Halvorsen Try identify(expand.grid(1:512,1:512)) But, be careful with the index of the matrix (image) On Tue, 02 Sep 2003 15:31:45 -0400, kjetil brinchmann halvorsen [EMAIL PROTECTED] wrote: Hola! I will want to identify pixels in an image with the mouse, for so getting the image

Re: [R] identify with image

2003-09-02 Thread Roger Bivand
On Tue, 2 Sep 2003, kjetil brinchmann halvorsen wrote: Hola! I will want to identify pixels in an image with the mouse, for so getting the image data from the matrix(es), for use in subsequent discriminant analysis. But the following bombs R: (windows XP, rw1071) str(baboon) list()