[R] error bars in line plots

Richard Rowe Richard.Rowe at jcu.edu.au
Tue Oct 8 00:02:49 CEST 2002

At 09:23 07/10/02 +0200, you wrote:
>On 6 Oct 2002, Myriam Abramson wrote:
>   |Hi!
>   |
>   |Could you tell me how I can draw a graph with error bars?
>   |Sorry, I don't use R that often and I couldn't find it easily in the
>   |documentation.
>and Ott Toomet responded
>There is no errorbars function in the package.  But you may easily construct
>your own using segments().  I add my own versions below (actually, why not
>put something similar into the base package?).

When I first met the problem I felt error bars should be added ... however 
different disciplines have different ideas on what confidence intervals 
should be and a 'packaged' version of 'error bars' may be less than 
helpful.  Maybe a short script should be put somewhere accessable?  I built 
my own script in a couple of minutes based on previous solutions given by 
readers of r-help ... . It is actually a nice beginner exercise in R 
programming, taking a few moments with every prospect of swift success,

Richard Rowe
Senior Lecturer
Department of Zoology and Tropical Ecology, James Cook University
Townsville, Queensland 4811, Australia
fax (61)7 47 25 1570
phone (61)7 47 81 4851
e-mail: Richard.Rowe at jcu.edu.au

r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info", "help", or "[un]subscribe"
(in the "body", not the subject !)  To: r-help-request at stat.math.ethz.ch

More information about the R-help mailing list