[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:
barplot(rbind(c(1:3,3:1,-3:-1,-1:-3),c(1:6,-6:-1)),
space=c(rep(0.5,6),-8.5,rep(0.5,5)),col=c('red','orange'))
--
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