Many thanks, I think I got the spirit of 'capturing and overriding'
the arguments which was the bit i was missing. It's much clearer now
with a working example.
Thanks again,
baptiste
On 7 Oct 2008, at 21:19, Deepayan Sarkar wrote:
On Tue, Oct 7, 2008 at 8:54 AM, baptiste auguie <[EMAIL P
On Tue, Oct 7, 2008 at 8:54 AM, baptiste auguie <[EMAIL PROTECTED]> wrote:
> Dear list,
>
>
> I've been trying this for a few hours and I just don't understand how
> lattice works with groups and subscripts.
>
> Consider the following example,
>
>
>
>> xx <- seq(1, 10, length=100)
>> x <- rep(xx, 4
Hi, and thanks for your email,
I realise my example was not very good. The actual dataset I'm trying
to plot is rather big and this oversimplified example did not make
much sense.
I actually do need to color different subsets of the data differently
in each panel, that's why I thought of
Not exactly sure what you want to do, but ...
In your example, you do not need groups, since the color doesn't change
within the levels of the conditioning variable (fact). Hence you can use the
panel.number() function to choose the plotting color of each panel, like
this:
## .. continuing with y
Dear list,
I've been trying this for a few hours and I just don't understand how
lattice works with groups and subscripts.
Consider the following example,
xx <- seq(1, 10, length=100)
x <- rep(xx, 4)
y <- c(cos(xx), sin(xx), xx, xx^2/10)
fact <- factor(rep(c("cos", "sin", "id", "square")
5 matches
Mail list logo