Skip to content
Prev 200911 / 398503 Next

Hmisc and Lattice question on gridlines

On Fri, Nov 20, 2009 at 7:47 AM, Joe King <jp at joepking.com> wrote:
As ?panel.xyplot tells you, type="g" is just a shortcut that calls
panel.grid(), so you get the equivalent effect with

xYplot(Cbind(y,cilower,ciupper)~x,col.fill="grey",plot.points = TRUE,
       type="b",method="filled bands",
       panel = function(...) {
           panel.grid(h = -1, v = -1)
           panel.xYplot(...)
       })

-Deepayan