[R] lattice.xyplot: adding grid lines

Deepayan Sarkar deepayan at stat.wisc.edu
Tue Sep 9 15:33:31 CEST 2003


Sorry, that's what you get when you don't run your code before sending it. 
Should be panel.superpose instead of panel.xyplot, since you want a grouped 
display. e.g.,

xyplot(Sepal.Length + Sepal.Width ~ Petal.Length ,
       data = iris, allow.multiple = TRUE, scales = "same",type="l",
       panel = function(...) {
           panel.grid(h=2, v= 3, col="blue")
           panel.superpose(...)
       }
)

Deepayan


On Tuesday 09 September 2003 08:19, Marc Mamin wrote:
> Hallo, thank you for your answer,
>
> there is still one problem in your solution:
>
> Sepal.Length + Sepal.Width are considerd as a single serie of data...
>
> Marc Mamin




More information about the R-help mailing list