Skip to content

quartz identify bug (PR#11491)

6 messages · olivier at statisticien.fr, Simon Urbanek, olivierStat +1 more

#
Full_Name: olivier
Version: 2.7.0
OS: mac os 10.5.2
Submission from: (NULL) (62.39.72.218)


Identify function does not work properly.
Esc button does not stop the process and R crashes. On qqplots graphic,
identify() does not find any points.

It is a serious problem, I can't identify points without crashing R now.




PS : Identify does not work on multiple graphics (par(mfrow=c(2,2))
#
Olivier,
On May 20, 2008, at 9:30 AM, olivier at statisticien.fr wrote:

            
Can you send a reproducible example of the crash (exactly the code +  
how are you running R) and the crash report, please? I'm not able to  
reproduce any crash.

As for terminating the identify, use <Ctrl>+<Click> (Mac equivalent of  
second mouse button). <Esc> doesn't do anything in a Quartz device in  
R 2.7.0. I'll update the documentation correspondingly, thanks for the  
hint.
Again - without an exact example it's impossible to tell whether it's  
a user error or something real.

Thanks,
Simon
How could it? That makes no sense (do you really know how what  
identify does? I'd suggest you read the help page.).
6 days later
#
Simon Urbanek wrote:
Ok, This simple example does not work :

x=rnorm(10)
plot(x)
identify(x)

Identify function find points when I clic on them, but I can't stop the
process. ESC key, or any other mousse button does not work. So I have to
close the quartz() window to stop the identify process and sometimes R
crashes.


The second problem is that the mousse does not focus on the window when I
call identify()

The third problem is in this example :

x=rnorm(10)
qqnorm(x)
identify(x)

Identify function does not find any points when I clic on them and there is
always a problem to stop the process...



Let's see another example :


x=rnorm(10)
par(mfrow=c(2,1))
plot(x)
qqnorm(x)
identify(x)

For this example, I don't know if I am right and I understand that identify
does not find points. Is this really a bug ?


I apologize for my english and I hope you understand me correctly.

Olivier.
1 day later
#
Olivier,
On May 20, 2008, at 9:30 AM, olivier wrote:

            
Hi,
I did not see you wrote how to terminate identify.
<Ctrl>+<Click> works very well so there is no more problem of crash.


There is always the same problem with theses examples :

#1
x=rnorm(10)
qqnorm(x)
identify(x)

#2
x=rnorm(10)
par(mfrow=c(2,1))
plot(x)
qqnorm(x)
identify(x)

identify does not find any points.


Thank you for your help.
Olivier.
#
On Wed, 28 May 2008, someone ashamed of his real identity wrote:
[...]
Correct, but it is user error.  From the help for identify:

      x,y: coordinates of points in a scatter plot.  Alternatively, any
           object which defines coordinates (a plotting structure, time
           series etc: see 'xy.coords') can be given as 'x', and 'y'
           left missing.

and qqnorm does not do a scatter plot of 'x'.  You need something like 
(look at qqnorm.default)

xx <- qnorm(ppoints(length(x)))[order(order(x))]
identify(xx, x)

(If there were missing values you would need to work harder.)

And please have the courtesy to use your real name and give a signature 
block with your credentials -- it is what is expected in return from the 
expert free consultancy you receive here.
#
On Thu, 29 May 2008, Prof Brian Ripley wrote:

            
Or just

xx <- qqnorm(x)
identify(xx)

at least for the default method.