[R] How to plot error bars

Kaspar Pflugshaupt pflugshaupt at geobot.umnw.ethz.ch
Thu Nov 9 14:56:10 CET 2000

On 9.11.2000 14:22 Uhr, ben at zoo.ufl.edu wrote:

> That's certainly a simpler solution.  It might be worth wrapping a few
> arrows() calls up in some kind of simple errorbar function (just so it's
> slightly more accessible to newcomers).  The only two things my function
> did that these calls don't do is (1) to size the plot appropriately so the
> upper and lower limits of the errors are within the plot, (2) to draw the
> segments/arrows first so that one can add points with pch=19 and
> bg=par("bg") to get open points without lines going through them.

I consider these quite important improvements!

When I needed error bars lately, I thought first "well, it'll be easy, just
use arrows()", but ended up with just those two problems. I hacked up
something then, but never made it into a clean function. So I'd welcome the
addition of plot.CI to R-base.

My 2 Rp

Kaspar Pflugshaupt


Kaspar Pflugshaupt
Geobotanisches Institut
Zuerichbergstr. 38
CH-8044 Zuerich

Tel. ++41 1 632 43 19
Fax  ++41 1 632 12 15

mailto:pflugshaupt at geobot.umnw.ethz.ch
privat:pflugshaupt at mails.ch

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