Re: [R] Bar charts with error bars

From: John Kane <jrkrideau_at_yahoo.ca>
Date: Tue, 24 Jun 2008 10:53:10 -0700 (PDT)


Does this example help?

my.values <- c(10, 5)
err1 <- c(.5,.3)
x <- barplot(my.values, ylim=c(0,12))
arrows(x,my.values-.5 ,x,my.values+.5, code=3, angle=90, length=.1) box()

> From: Liat RT <liroth05_at_yahoo.dk>
> Subject: [R] Bar charts with error bars
> To: r-help_at_r-project.org
> Received: Tuesday, June 24, 2008, 11:06 AM
> I would like to add error bars to a bar chart, I have
> created in R. I am able to add error bars to a bar plot,
> but the same method does not seem to work for my bar chart
> version.
>  
> Is there a way to add error bars to bar charts?
>
>
>
> ________________________________________________________
> Audi, Fiat, Peugeot, Skoda, Porsche, Toyota, Ford - Kelkoo
> har brugte biler til en hver smag! Klik her for at
> sammenligne priser.(http://dk.yahoo.com/r/pat/mmb)
> [[alternative HTML version
> deleted]]______________________________________________
> R-help_at_r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide
> http://www.R-project.org/posting-guide.html
> and provide commented, minimal, self-contained,
> reproducible code.



Yahoo! Canada Toolbar: Search from anywhere on the web, and bookmark your favourite sites. Download it now at http://ca.toolbar.yahoo.com.

R-help_at_r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code. Received on Tue 24 Jun 2008 - 17:57:07 GMT

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Tue 24 Jun 2008 - 18:30:58 GMT.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-help. Please read the posting guide before posting to the list.

list of date sections of archive