[R] Identify and plotting symbols. [SEC=UNCLASSIFIED]

Crombie, Joe Joe.Crombie at brs.gov.au
Thu Sep 20 06:11:17 CEST 2007


Rolf turner wrote:

>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)


Why not:

ind <- identify(x,y, plot = F)
points(x[ind], y[ind], pch = 19)

Cheers  Joe



Joe Crombie
 
Information and Risk Sciences
Bureau of Rural Science
Canberra  Australia
 
p: +61 2 6272 5906
e: joe.crombie at brs.gov.au

------IMPORTANT - This message has been issued by The Department of Agriculture, Fisheries and Forestry (DAFF). The information transmitted is for the use of the intended recipient only and may contain confidential and/or legally privileged material. It is your responsibility to check any attachments for viruses and defects before opening or sending them on. 

Any reproduction, publication, communication, re-transmission, disclosure, dissemination or other use of the information contained in this e-mail by persons or entities other than the intended recipient is prohibited. The taking of any action in reliance upon this information by persons or entities other than the intended recipient is prohibited. If you have received this e-mail in error please notify the sender and delete all copies of this transmission together with any attachments. If you have received this e-mail as part of a valid mailing list and no longer want to receive a message such as this one advise the sender by return e-mail accordingly. Only e-mail correspondence which includes this footer, has been authorised by DAFF 
------



More information about the R-help mailing list