I have been trying, unsuccessfully, to use identify() to (simply)  
return a list of
the indices of points clicked on and overplot (with say a solid dot)  
each clicked-on
point so that I can see where I've been.  I.e. I don't want to see  
the indices printed
on the screen; I just want the points I've already selected to be  
highlighted.

I tried

        ind <- identify(x,y,labels=rep("\021",length(x)),offset=0)

Two problems:

        (1) Instead of getting a solid dot --- which I thought I should get  
from "\021", I got a
        small rectangle outlined in dotted lines.   (Which I would've  
thought I'd get from
        "\177".)

        I seem to get the dotted rectangle no matter what 3 digit string I  
use in "\xxx".

        (2) Despite setting offset=0 the superimposed symbol is not actually  
superimposed,
        but is jittered off the location of the existing point by a small  
amount.

Another minor annoyance is having to use rep("\021",length(x)) rather  
than simply
"\021".  I.e. the vector supplied for labels does not get  
``recycled'' the way col and
pch etc. are recycled.

Is there any way of resolving these difficulties?

                cheers,

                        Rolf Turner

######################################################################
Attention:\ This e-mail message is privileged and confidenti...{{dropped}}

______________________________________________
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.

Reply via email to