Re: [R] transforming output of grid.locator() to coordinates of a leaf viewport

2008-06-03 Thread Wittner, Ben, Ph.D.
essage- > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] > On Behalf Of Paul Murrell > Sent: Monday, June 02, 2008 10:05 PM > To: Wittner, Ben, Ph.D. > Cc: [EMAIL PROTECTED] > Subject: Re: [R] transforming output of grid.locator() to coordinates of a > leaf viewport > &

Re: [R] transforming output of grid.locator() to coordinates of a leaf viewport

2008-06-02 Thread Paul Murrell
click), solve(transLeft)) rightClick <- newloc(unlist(click), solve(transRight)) # Which one was it in ? all(leftClick > 0 & leftClick < sizeLeft) all(rightClick > 0 & rightClick < sizeRight) Does that help ? Paul > ____________ > >

Re: [R] transforming output of grid.locator() to coordinates of a leaf viewport

2008-06-01 Thread Wittner, Ben, Ph.D.
From: hadley wickham [mailto:[EMAIL PROTECTED] Sent: Sun 6/1/2008 3:24 PM To: Wittner, Ben, Ph.D. Cc: [EMAIL PROTECTED] Subject: Re: [R] transforming output of grid.locator() to coordinates of a leaf viewport Ben, What if the click occurs over multiple viewports? Hadley

Re: [R] transforming output of grid.locator() to coordinates of a leaf viewport

2008-06-01 Thread hadley wickham
Ben, What if the click occurs over multiple viewports? Hadley On Mon, Jun 2, 2008 at 6:50 AM, Wittner, Ben, Ph.D. <[EMAIL PROTECTED]> wrote: > Short form: > >How do I transform the output of grid.locator() (or > grid.locator(unit='npc')) to the native (or npc) coordinates of a vi

[R] transforming output of grid.locator() to coordinates of a leaf viewport

2008-06-01 Thread Wittner, Ben, Ph.D.
Short form: How do I transform the output of grid.locator() (or grid.locator(unit='npc')) to the native (or npc) coordinates of a viewport other than the top-level viewport? Thanks in advance. -Ben Long form: I would like the user to be able to cl