[R] xyplot with grid?

Deepayan Sarkar deepayan.sarkar at gmail.com
Wed May 9 20:30:31 CEST 2007


On 5/9/07, Gav Wood <news at gavofyork.fastmail.fm> wrote:
> > Giving a reproducible example would be a good start.
>
> Ok, what's the easiest way to get a grid (ala grid()) on this graph?
>
> xyplot(x~y,data.frame(x=1:9,y=1:9,z=sort(rep(c('A','B','C'),3))),
>      groups=z,auto.key=list(columns=3))

xyplot(x~y,data.frame(x=1:9,y=1:9,z=sort(rep(c('A','B','C'),3))),
       type = c("p", "g"),
       groups=z,auto.key=list(columns=3))

-Deepayan

>
> Bish bosh,
>
> Gav
>
> ______________________________________________
> R-help at stat.math.ethz.ch mailing list
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
> and provide commented, minimal, self-contained, reproducible code.
>



More information about the R-help mailing list