Re: [R] Error Bars in lattice- barcharts

2010-04-09 Thread Sam Albers
> > Well, when the error message says "argument 'lx' is missing, with no > default", it really means that argument 'lx' is missing, with no > default. Your panel function has an argument 'lx', which you forgot to > change to 'ly' as you did with the prepanel function. > > Hope that helps... > > Tha

Re: [R] Error Bars in lattice- barcharts

2010-04-07 Thread Felix Andrews
On 20 February 2010 11:22, Sam Albers wrote: > #I've tried to alter the panel function according to the thread to produce > vertical error bars in my barcharts > > prepanel.ci <- function(x, y, ly, uy, subscripts, ...) { > >        y <- as.numeric(y) >        ly <- as.numeric(ly[subscripts]) >  

Re: [R] Error Bars in lattice- barcharts

2010-04-07 Thread Felix Andrews
On 8 April 2010 06:03, Ivan Gregoretti wrote: > Hi Sam and everybody, > > Can you educate me a little bit on the use of barchart? > > A command like this > > barchart(~table(someProperty), data=A) > > produces a barchart with horizontal bars. That should be barchart(table(someProperty), data=A)

Re: [R] Error Bars in lattice- barcharts

2010-04-07 Thread Sam Albers
Hi Ivan, Can you educate me a little bit on the use of barchart? > Unfortunately no... For this post I eventually used the barplot2() in the gplots packages. I got bogged down trying to do it in lattice so I looked for an alternative. It was quite straight forward which was nice and I was able to

Re: [R] Error Bars in lattice- barcharts

2010-04-07 Thread Ivan Gregoretti
Hi Sam and everybody, Can you educate me a little bit on the use of barchart? A command like this barchart(~table(someProperty), data=A) produces a barchart with horizontal bars. I want to produce that graph but with VERTICAL bars. clearly, horizontal=FALSE does not work. Thank you, Ivan

[R] Error Bars in lattice- barcharts

2010-02-19 Thread Sam Albers
Hello, I am attempting to write a script that adds error bars to a barchart. I basing my attempt heavily on the following thread: http://tolstoy.newcastle.edu.au/R/e2/help/06/10/2791.html I can't seem to get around the problem that was discussed in the thread. The following example should illust