[R] Plotting error bars in xy-direction

From: Hans W. Borchers <hwborchers_at_gmail.com>
Date: Wed, 5 Dec 2007 09:44:52 +0000 (UTC)

Dear R-help,

I am looking for a function that will plot error bars in x- or y-direction (or both), the same as the Gnuplot function 'plot' can achieve with:

    plot "file.dat" with xyerrorbars,...

Rsite-searching led me to the functions 'errbar' and 'plotCI' in the Hmisc, gregmisc, and plotrix packages. As I understand the descriptions and examples, none of these functions provides horizontal error bars.

Looking into 'errbar' and using segments, I wrote a small function for myself adding these kinds of error bars to existing plots. I would still be interested to know what the standard R solution is.

Regards, Hans Werner

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 Wed 05 Dec 2007 - 09:54:24 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 Wed 05 Dec 2007 - 16:30:17 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.