[R] Error bars on barplots

Peter Dalgaard BSA p.dalgaard at biostat.ku.dk
Wed Sep 8 17:27:17 CEST 1999


"Uli Flenker; Raum 704" <uli at biochem.dshs-koeln.de> writes:

> As I wrote before: This calculates appropriate x-values for grouped
> barplots, "x" being the matrix of interest. Not elegant but it works.
> 
> cumsum(array(c(1,rep(0,dim(x)[1]-1)),
> 	dim=c(1,length(x))))+0:(length(x)-1)+.5
> 

There are also issues of "width" and "space". Actually barplot()
itself will return the relevant values if the names.arg argument has
the same length as the total number of columns, but the plot will look
awful. I suppose we could do with a plot=FALSE argument as we have for
hist()?

-- 
   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