Robert A. LaBudde
2009-Jul-02 17:11 UTC
[R] Getting identify() to work with lattice::cloud()
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"
Deepayan Sarkar
2009-Jul-03 00:30 UTC
[R] Getting identify() to work with lattice::cloud()
On Thu, Jul 2, 2009 at 10:11 AM, Robert A. LaBudde<ral at lcfltd.com> wrote:> 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.No, but panel.identify.cloud() should. -Deepayan