[R] Getting identify() to work with lattice::cloud()

Robert A. LaBudde ral at lcfltd.com
Thu Jul 2 19:11:09 CEST 2009


I don't seem to be able to put any syntax into identify() that gets 
it to work with "lattice" cloud() graph:

layout(1)
require('lattice')
cloud(g3 ~ g1 + g2, data=gapp, col = "blue",
   xlab='G1 Score', ylab='G2 Score',
   zlab='G3 Score', main='3D Plot for Applicants')
identify(gapp[,2:4], labels=gapp$ID)

Here g1 is gapp[,2], g2 is gapp[,3] and g3 is gapp[,4]. gapp is a data frame.

I've tried several variants in the first arguments of identify(), but 
no matter what I use, when I click on a point I get warning: "no 
point within 0.25 inches".

Does identify() work with cloud()? If so, what is the correct syntax.

Thanks.

================================================================
Robert A. LaBudde, PhD, PAS, Dpl. ACAFS  e-mail: ral at lcfltd.com
Least Cost Formulations, Ltd.            URL: http://lcfltd.com/
824 Timberlake Drive                     Tel: 757-467-0954
Virginia Beach, VA 23464-3239            Fax: 757-467-2947

"Vere scire est per causas scire"




More information about the R-help mailing list