Re: [R] Grouped barchart confidence intervals in lattice

2012-03-04 Thread ilai
packet.number() will retrieve the panel you are working in. With a third conditioning variable, you now have say a list of *.err$x, one for each panel/level of 3rd var. In that case you need dsl[[packet.number()]] to get at the right place in the list (or [,packet.number()] if it's a matrix etc.).

Re: [R] Grouped barchart confidence intervals in lattice

2012-03-03 Thread ilai
On Sat, Mar 3, 2012 at 5:48 PM, Nathan Lemoine wrote: > It appears that the subscripts are only passing two values, the center of > each group. There should be six values, one for the center of each bar > (correct?), No. That's also why your code doesn't work. x[subscripts] are not the centroi

[R] Grouped barchart confidence intervals in lattice

2012-03-03 Thread Nathan Lemoine
Sorry for the second post. I caught a few glitches in the code from my previous post. I've also made a little bit of progress in trying to figure out why I can't get error bars to line up properly. It appears that the subscripts are only passing two values, the center of each group. There should

[R] Grouped barchart confidence intervals in lattice

2012-03-02 Thread Nathan Lemoine
Hi everyone, I'm having trouble adding error bars to a grouped barchart in lattice. I know that this topic has been addressed quite a bit, as I've been searching the internet for a while to try to troubleshoot the issue, but I've not been able to find any solution that I could get working on my