Re: [R] xyplot with grid?

From: Deepayan Sarkar <>
Date: Wed, 09 May 2007 10:56:42 -0700

On 5/9/07, Gav Wood <> wrote:
> Hello folks,
> So I'd like to use the lattice xyplot function, but here's the thing;
> I'd like a grid on it and a bit of annotation (line and text).
> So I tried just using the panel.grid, panel.text and panel.line but they
> didn't work after the plot had been called seemingly using the device
> coordinate system. So I made a new proxy panel function (calling
> panel.xyplot and passing the x/y/groups/subscripts args) put them in it,
> and they started working well.
> Only problem is that xyplot no longer plots the key; I still pass
> auto.key to into the high-level function, but no key gets plotted.
> What's the best way to get what I want?

Giving a reproducible example would be a good start.

-Deepayan mailing list PLEASE do read the posting guide and provide commented, minimal, self-contained, reproducible code. Received on Wed 09 May 2007 - 18:00:35 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 Wed 09 May 2007 - 19:31:41 GMT.

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