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

From: Gabor Grothendieck <ggrothendieck_at_gmail.com>
Date: Sun, 20 Jul 2008 22:44:46 -0400

Use grid.text instead:

library(lattice)
library(grid)
xyplot(demand ~ Time, BOD, panel = function(...) {

   panel.xyplot(...)
   grid.text("Some text", .1, .1) # near lower left })

On Sun, Jul 20, 2008 at 9:03 PM, Bryan Hanson <hanson_at_depauw.edu> 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.
>
> Is there a function like grconvertX in Lattice, or is there a flag or some
> other method of making panel.text use plot coordinates?
>
> Thanks, Bryan
>
> ______________________________________________
> R-help_at_r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
> and provide commented, minimal, self-contained, reproducible code.
>



R-help_at_r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code. Received on Mon 21 Jul 2008 - 02:49:44 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 - 06:32:10 GMT.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-help. Please read the posting guide before posting to the list.

list of date sections of archive