[R] adding device size-independent y=0 line to a lattice plot

Levi Waldron leviwaldron at gmail.com
Mon Mar 31 22:11:33 CEST 2008


On Mon, Mar 31, 2008 at 4:04 PM, Deepayan Sarkar
<deepayan.sarkar at gmail.com> wrote:
>
>  The obvious thing to try would be
>
>  dotplot(y~x|fac,
>         panel = function(...) {
>             panel.abline(h = 0)
>             panel.dotplot(...)
>         })
>
>  Does this not work?
>
>  -Deepayan
>

Yes that works, thank you - I'm new to the lattice graphics package.



More information about the R-help mailing list