Re: [R] How to include CI in a grouped barplot?

2012-11-11 Thread Thais Rangel
Thanks everyone. Thais Rangel Rio de Janeiro State University, Brazil [[alternative HTML version deleted]] __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.o

Re: [R] How to include CI in a grouped barplot?

2012-11-08 Thread ilai
On Thu, Nov 8, 2012 at 12:14 PM, Rui Barradas wrote: > Hello, > > If I understand it right, you can use the arrows() function with an angle > of 90 to get ci bars. > Using your data example, but with made up standard errors, > > > a=c(10,15) > b=c(20,24) > c=c(21,23) > > hei=cbind(a,b,c) > > # St

Re: [R] How to include CI in a grouped barplot?

2012-11-08 Thread Rui Barradas
Hello, If I understand it right, you can use the arrows() function with an angle of 90 to get ci bars. Using your data example, but with made up standard errors, a=c(10,15) b=c(20,24) c=c(21,23) hei=cbind(a,b,c) # Standard errors sigma <- matrix(runif(6), ncol = 3) # helper function ci <- f

Re: [R] How to include CI in a grouped barplot?

2012-11-08 Thread Marc Schwartz
On Nov 8, 2012, at 7:02 AM, Thais Rangel wrote: > Hello everyone! > > I need to include the confidence interval bar in a grouped barplot. I've > found some options on the web, but none of them solved my problem. > > The question is: my barplot was created using vectors for each pair of bar > an

[R] How to include CI in a grouped barplot?

2012-11-08 Thread Thais Rangel
Hello everyone! I need to include the confidence interval bar in a grouped barplot. I've found some options on the web, but none of them solved my problem. The question is: my barplot was created using vectors for each pair of bar and them combining them using cbind. I mean: a=c(10,15) b=c(20,24