On Wednesday 28 July 2004 16:36, Matt Pocernich wrote:
> Hi,
> 
> Using lattice's xyplot, is it possible to specify a variable to group
> plots by page.  For example, if I have
> 
> xyplot(y~x|A*B*C)
> 
> could I get a page created for each unique value in
> variable C ?  I am hoping to avoid having pages with the same strip above
> each plot on a page.

If I understand you correctly (which I'm not sure I do), then no, not 
directly. But you can do the following (assuming C is a factor):


for (l in levels(C)) {
  print(xyplot(y ~ x | A * B, subset = C == l))
}

Is that what you are looking for?

Deepayan

______________________________________________
[EMAIL PROTECTED] mailing list
https://www.stat.math.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html

Reply via email to