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? Cheers, Gav
On 5/9/07, Gav Wood <news at gavofyork.fastmail.fm> 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
Possibly Parallel Threads
- lattice xyplot - aligning date labels so that they align with the grid lines in panel.grid
- lattice.xyplot: adding grid lines
- Apparent different in symbol scaling between xyplot and grid.points
- adding grid lines to an xyplot when there is only 1 panel - corrected
- xyplot,grid.text segfault (PR#948)