Skip to content

barplots & ylim (PR#1398)

2 messages · jan.wiener@tuebingen.mpg.de, Uwe Ligges

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


jan wiener



-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
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
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._
1 day later
#
jan.wiener@tuebingen.mpg.de wrote:
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
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._