Thanks, yes "native" is the right one. The code below now works as desired:
trellis.focus("panel", 1, 1)
grid.text("put text here", x = 1, y = 1.5, default.units = "native")
On 3/4/08 1:44 PM, "Erik Iverson" <[EMAIL PROTECTED]> wrote:
> You want "native" coordinates. But since you are using
You want "native" coordinates. But since you are using lattice (built
'on top' of grid), you probably need some additional info, like the name
of the viewport you want to write to I assume(?), but I can't help you
with that part.
David Afshartous wrote:
> Okay, I see that default.units is set
Okay, I see that default.units is set to "npc" and hence the behavior I
mentioned. Looking at ?unit, I see the description of various units but it
isn't clear which one I need to select to achieve the result I specified
earlier. Maybe I'm missing something very basic, but I assume there must be
On Tue, Mar 4, 2008 at 11:18 AM, hadley wickham <[EMAIL PROTECTED]> wrote:
> > When using grid.text it seems my supplied (x,y) coordinates are being
> > plotted only in npc (normalized parent coordinates) where (.5,.5) is the
> > center of the graph. How do I allow (x,y) to be coordinates cor
> When using grid.text it seems my supplied (x,y) coordinates are being
> plotted only in npc (normalized parent coordinates) where (.5,.5) is the
> center of the graph. How do I allow (x,y) to be coordinates corresponding
> to the (x,y) values in the graph? The examples in ?grid.text seem t
All,
When using grid.text it seems my supplied (x,y) coordinates are being
plotted only in npc (normalized parent coordinates) where (.5,.5) is the
center of the graph. How do I allow (x,y) to be coordinates corresponding
to the (x,y) values in the graph? The examples in ?grid.text seem to do
6 matches
Mail list logo