Re: [R] trellis: conditional statements within a panel function

2008-10-31 Thread Deepayan Sarkar
On 10/31/08, erwann rogard <[EMAIL PROTECTED]> wrote: > hello, > > what i'm trying to achieve is shown in the comment (# ...) below, which is > surely very wrong, but probably intuitively more meaningful that i can > provide in words. > > xyplot(y~x2|x1+which,data=make.groups( > "a"=data.a, >

[R] trellis: conditional statements within a panel function

2008-10-31 Thread erwann rogard
hello, what i'm trying to achieve is shown in the comment (# ...) below, which is surely very wrong, but probably intuitively more meaningful that i can provide in words. xyplot(y~x2|x1+which,data=make.groups( "a"=data.a, "b"=data.b, "c"=data.c ), panel=function(...){ panel.abline(a=0,b