Does identify work in lattice plots? I tried this in R 1.4.1 (original
release) on my Win2000 machine with lattice 0.4-0 and grid 0.5-1.
> xyplot(y ~ x,
+ panel=function(x, y, ...){
+ panel.xyplot(x, y, col=2, pch=20, ...)
+ panel.lmline(x, y, type = "l")
+ identify(x, y)
+ })
I get a change of cursor after the data points and the LS line are plotted
(but before the axes are), but when I start clicking on points, all I get
are beeps. When I click the right mouse button I get a window with
stop/continue choices and choosing stop produces the axes on the plot and a
bunch of warnings about no point being within 0.25 inches.
Am I doing anything wrong or identify is not implemented in lattice
graphics?
Thanks in advance,
Andy
__________________________________
Andy Jaworski
Engineering Systems Technology Center
3M Center, 518-1-01
St. Paul, MN 55144-1000
-----
E-mail: apjaworski at mmm.com
Tel: (651) 733-6092
Fax: (651) 736-3122
-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info", "help", or "[un]subscribe"
(in the "body", not the subject !) To: r-help-request at
stat.math.ethz.ch
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._
On Mon, 4 Mar 2002 apjaworski at mmm.com wrote:> Does identify work in lattice plots? I tried this in R 1.4.1 (original > release) on my Win2000 machine with lattice 0.4-0 and grid 0.5-1. > > > xyplot(y ~ x, > + panel=function(x, y, ...){ > + panel.xyplot(x, y, col=2, pch=20, ...) > + panel.lmline(x, y, type = "l") > + identify(x, y) > + }) > > I get a change of cursor after the data points and the LS line are plotted > (but before the axes are), but when I start clicking on points, all I get > are beeps. When I click the right mouse button I get a window with > stop/continue choices and choosing stop produces the axes on the plot and a > bunch of warnings about no point being within 0.25 inches. > > Am I doing anything wrong or identify is not implemented in lattice > graphics?identify is part of the base graphics: lattice is built on grid. You can't just use base graphics functions in lattice panels, but in most cases there are equivalents. identify in an exception, one that has hit me too. Brian -- Brian D. Ripley, ripley at stats.ox.ac.uk Professor of Applied Statistics, http://www.stats.ox.ac.uk/~ripley/ University of Oxford, Tel: +44 1865 272861 (self) 1 South Parks Road, +44 1865 272860 (secr) Oxford OX1 3TG, UK Fax: +44 1865 272595 -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.- r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html Send "info", "help", or "[un]subscribe" (in the "body", not the subject !) To: r-help-request at stat.math.ethz.ch _._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._
Nope, there is no grid/lattice counterpart of identify() yet. --- apjaworski at mmm.com wrote:> Does identify work in lattice plots? I tried this in R 1.4.1 (original > release) on my Win2000 machine with lattice 0.4-0 and grid 0.5-1. > > > xyplot(y ~ x, > + panel=function(x, y, ...){ > + panel.xyplot(x, y, col=2, pch=20, ...) > + panel.lmline(x, y, type = "l") > + identify(x, y) > + })[...] -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.- r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html Send "info", "help", or "[un]subscribe" (in the "body", not the subject !) To: r-help-request at stat.math.ethz.ch _._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._