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=
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