From ligges@amadeus.statistik.uni-dortmund.de  Thu Mar 21 21:00:42 2002
From: ligges@amadeus.statistik.uni-dortmund.de (Uwe Ligges)
Date: Thu, 21 Mar 2002 22:00:42 +0100
Subject: [Rd] barplots & ylim (PR#1398)
References: <200203200807.JAA08835@pubhealth.ku.dk>
Message-ID: <3C9A49FA.7E1DC0F0@statistik.uni-dortmund.de>

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


[Rd] barplots & ylim (PR#1398)
Uwe Ligges