Re: [R] Lattice Version of grconvertX or variant on panel.text?

From: hadley wickham <>
Date: Sun, 20 Jul 2008 18:20:15 -0700

On Sun, Jul 20, 2008 at 6:03 PM, Bryan Hanson <> wrote:
> Still playing with Lattice...
> I want to use panel.text(x, y etc) but with x and y in plot coordinates
> (0,1), not user coordinates.
> I think if I had this problem with traditional graphics, I could use
> grconvertX to make the change. I did come across convertX {grid} but this
> doesn't seem to be what I need.

Looking at the code for panel.text (lattice:::ltext.default) it looks like the easiest way to go would be to call grid.text directly, specifying the units ("npc") that you want to use.



______________________________________________ mailing list
PLEASE do read the posting guide
and provide commented, minimal, self-contained, reproducible code.
Received on Mon 21 Jul 2008 - 01:24:55 GMT

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Mon 21 Jul 2008 - 01:32:24 GMT.

Mailing list information is available at Please read the posting guide before posting to the list.

list of date sections of archive