[Rd] barplots & ylim (PR#1398)

Uwe Ligges ligges@amadeus.statistik.uni-dortmund.de
Thu, 21 Mar 2002 22:00:42 +0100


jan.wiener@tuebingen.mpg.de wrote:
> 
> hi,
> when having a barplot one might wants to start the y-axis at some
> certain value (besides 0).
> 
> e.g.
> 
> x <- c(4,5,6,7)
> barplot(x, ylim=c(3,8))
> 
> as you can see, the bars are plotted below the limit specified by ylim.


The bug was already filed as bug report #1088 by Peter Whiting,
including the suggestion for a fix.
So far the fix looks reasonable, if the setting of xpd=TRUE is needed
anywhere [and cannot determined automatically by a smart piece of code].
I cannot imagine such a situation, can anyone tell me the reason why
par(xpd=TRUE) should be set (hard coded or as a default), please? Thank
you.

Uwe Ligges
-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
r-devel 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-devel-request@stat.math.ethz.ch
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._