Re: [R] determining plot location in lattice

2008-11-08 Thread Greg Snow
. Snow Ph.D. Statistical Data Center Intermountain Healthcare [EMAIL PROTECTED] 801.408.8111 > -Original Message- > From: Sundar Dorai-Raj [mailto:[EMAIL PROTECTED] > Sent: Saturday, November 08, 2008 9:17 AM > To: Greg Snow > Cc: r-help@r-project.org > Subject: Re: [R] determi

Re: [R] determining plot location in lattice

2008-11-08 Thread Sundar Dorai-Raj
Hi, Greg, Thanks again for your reply. I looked at TkIdentify which lead me to "plt", which with RSiteSearch("grid plt") lead me to gridBase::gridPLT. Here's my solution: stopifnot(require(tkrplot), require(lattice), require(gridBase)) makePlot <- function() { print(xyp

Re: [R] determining plot location in lattice

2008-11-07 Thread Greg Snow
As far as R is concerned, the plot in tkrplot is being written to a file and therefore is not interactive. So functions like grid.locator and trellis.focus are not going to work. You need to use the Tk commands to determine where the mouse is and where a click occurred, then this needs to be c