[Rd] identify(...plot=F) (PR#1157)

rolf@maths.uwa.edu.au rolf@maths.uwa.edu.au
Fri, 2 Nov 2001 02:44:05 +0100 (MET)


If I execute, e.g.

> x <- round(runif(20,0,1),2)
> y <- round(runif(20,0,1),2)
> plot(x,y,xlim=c(0,1),ylim=c(0,1))
> identify(x,y,n=1,plot=F)

then I get the index of the identified point printed in the command
window, and ***initially*** the index is NOT displayed in the
graphics window (which is the behaviour I had hoped and expected
to obtain by setting ``plot=F'').

BUT THEN if I lower and then raise the graphics window, poof!!!
the index appears, unwanted, in the plot.

I think a workaround is to issue the identify command as

> identify(x,y,n=1,col=0)

but still, shouldn't the function work as advertized?

Version information:

platform i686-pc-linux-gnu
arch     i686             
os       linux-gnu        
system   i686, linux-gnu  
status                    
major    1                
minor    3.1              
year     2001             
month    08               
day      31               
language R

                                cheers,

                                        Rolf Turner

Usual address:     rolf@math.unb.ca
Current address:   rolf@maths.uwa.edu.au

-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
r-devel mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info", "help", or "[un]subscribe"
(in the "body", not the subject !)  To: r-devel-request@stat.math.ethz.ch
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._