[R] Graphically centering confidence interval in barplot

From: Smit, R. (Robin) <robin.smit_at_tno.nl>
Date: Thu 30 Jun 2005 - 22:40:39 EST


I have got a simple "cosmetic" question. I have created a bar plot with confidence intervals using:  

barplot(mean, ylim = c(0,0.2), las = 3, space = 0)

arrows(1:17 ,X95p_low, 1:17, X95p_high, length = 0.07, angle = 90, code = 3, lty = 1)  

Unfortunately, the confidence bars align with the right side of the bars and I would like to shift these to the middle of the bars.

Is there someone who can tell me how I can do this?  

Kind regards,
Robin Smit

This e-mail and its contents are subject to the DISCLAIMER at http://www.tno.nl/disclaimer/email.html

        [[alternative HTML version deleted]]

R-help@stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html Received on Thu Jun 30 22:46:22 2005

This archive was generated by hypermail 2.1.8 : Fri 03 Mar 2006 - 03:33:07 EST