[R] Error bars on barplots

Peter Dalgaard BSA p.dalgaard at biostat.ku.dk
Tue Sep 14 17:43:55 CEST 1999

Martin Maechler <maechler at stat.math.ethz.ch> writes:

> I've changed  barplot() to
> - accept a "plot = FALSE" argument (default remains TRUE)
> - in the above case ``beside = TRUE'' return 
>   a vector of locations for *each* bar 
>   (instead of midpoints of group of "beside-bar"s)
> I wonder if we shouldn't even return a matrix of these locations
> with the same dimension as  the barplot matrix argument.
> This matrix result could still be addressed as a vector (as all
> matrices can), but additionally, one could also use  apply(<res>, 2, mean)
> to get the locations of the mids of each bar group.
> Opinions?

Agree on the last count. I suspect, however, that you might want an
all.bars=FALSE argument to get the current behavior as default?

BTW, anyone considered the PR#130 strangeness of


where you get a dash-dotted axis because of axis(..., lty=0)

   O__  ---- Peter Dalgaard             Blegdamsvej 3  
  c/ /'_ --- Dept. of Biostatistics     2200 Cph. N   
 (*) \(*) -- University of Copenhagen   Denmark      Ph: (+45) 35327918
~~~~~~~~~~ - (p.dalgaard at biostat.ku.dk)             FAX: (+45) 35327907
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