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

Deepayan Sarkar deepayan.sarkar at gmail.com
Fri Jul 3 02:30:35 CEST 2009


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




More information about the R-help mailing list