Re: [R] Passing on "groups" argument to xyplot within a plotting function

2011-08-13 Thread Felix Andrews
The problem is that xyplot tries to evaluate 'groups' in 'data' or in the formula environment. Your local function environment (where the variable named "groups" is defined) is neither of these. There are a couple of ways to get the evaluation to work out; here is one: pb <- list(F1 = 1:8, F2 = 1:

[R] Passing on "groups" argument to xyplot within a plotting function

2011-08-11 Thread Fredrik Karlsson
Hi, I am constructing a plotting function that I would like to behave like plotting functions within the lattice package. It takes a "groups" argument, which I process, and then I would like to pass that argument on to the xyplot function for the actual plotting. However, what ever I do, get an er