Re: [R] Conditional error bars

2013-11-27 Thread William Dunlap
On > Behalf > Of raz > Sent: Wednesday, November 27, 2013 7:23 AM > To: r-help@r-project.org > Subject: [R] Conditional error bars > > How can I condition any error bar function that use the arrows() function, > such as 'CI.plot' (see example below) or 'error.

[R] Conditional error bars

2013-11-27 Thread raz
How can I condition any error bar function that use the arrows() function, such as 'CI.plot' (see example below) or 'error.bars', to draw only upper error bar (upper CI) if the bar value (mean) is positive and the lower error bar (lower CI) if bar value is negative? CI.plot <- function(mean, se,le