Skip to content
Prev 59903 / 398502 Next

barplot(2?) with CI from a zero reference line

On Fri, 2004-11-26 at 07:56 +0100, Jean-Louis Abitbol wrote:
Jean-Louis,

I may be mis-understanding what you are trying to do here, but do you
want to have a horizontal zero reference line in the middle of the plot,
such that you can have positive change bars going up from the line and
negative change bars going down from the line?

If so, the default mechanism will work:

barplot2(c(-1, 2, -3, 5, 4, -4))
abline(h = 0)


If that is the correct basic plot, just adjust the values for the CI's
accordingly.

HTH,

Marc Schwartz