[R] trellis.par.set and grid : how to set by default that I want a grid on my graphes ?

2006-11-15 Thread Pascal Boisson
Hello all, I want to draw a grid behind my graphes, using lattice package. I manage to do it with instructions like this one : xyplot(Sepal.Length + Sepal.Width ~ Petal.Length , data = iris, allow.multiple = TRUE, scales = same,type=l, panel = function(...) { panel.grid(h=-1, v=

Re: [R] trellis.par.set and grid : how to set by default that I want a grid on my graphes ?

2006-11-15 Thread Gabor Grothendieck
1. Another way to address this is to include g in the type vector: xyplot(Sepal.Length + Sepal.Width ~ Petal.Length , data = iris, allow.multiple = TRUE, scales = same, type = c(l, g)) 2. Also look in the example section of: library(zoo) ?xyplot.zoo which gives an example of plotting a