[R] barplot

Peter Dalgaard BSA p.dalgaard at biostat.ku.dk
Thu Feb 25 18:09:50 CET 1999

Lorenz Gygax <lgygax at access.unizh.ch> writes:

> Dear all,
> just a short note on how I solved my problem to display positive and
> negative values in the same bar in a barplot (it is really quick and dirty
> but it looks ok): I basically made two barplots one with the positive
> values and one with the negative values and managed to make them touch at
> zero by putting them in two adjacent plot regions (mfrow) and making the
> margin at the touching sides zero in both plots. 
> Regards, Lorenz

One might also play around with the space argument:


   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