Re: [R] Groups and bwplot

2011-08-22 Thread Sébastien Bihorel
I got it to works. The problem was mainly how data were passed to my panel and panel.groups function. For reference, here is what I ended with: require(lattice) mybwplot - function(x,y,data,group){ if (missing(group)||is.null(group)) { group - 'NULL' ngroups - 1 } else {

[R] Groups and bwplot

2011-08-20 Thread Sébastien Bihorel
Dear R-users, A while ago, Deepayan Sarkar suggested some code that uses the group argument in bwplot to create some 'side-by-side' boxplots (https://stat.ethz.ch/pipermail/r-help/2010-February/230065.html). The example he gave was relatively specific and I wanted to generalize his approach into

Re: [R] Groups and bwplot

2011-08-20 Thread Weidong Gu
You may want to consult a recent post by Felix (https://stat.ethz.ch/pipermail/r-help/2011-August/286707.html) on how to pass group parameter. Weidong Gu On Sat, Aug 20, 2011 at 6:59 AM, Sébastien Bihorel pomc...@free.fr wrote: Dear R-users, A while ago, Deepayan Sarkar suggested some code

Re: [R] Groups and bwplot

2011-08-20 Thread Sébastien Bihorel
Thanks for your input and this link. I realize that there was a typo in my example code that impacted the group argument... That's king of stupid. However, even with the implementation of Felix's syntax, the Error using packet 1, 'x' is missing error message is still displayed, even if the call