[R] barplot axes

karen@gecko.biol.wits.ac.za karen at gecko.biol.wits.ac.za
Wed Jan 5 23:27:45 CET 2000


Hi everyone

I seem to be having a problem with the y axis in barplot.

The default y axis produced by barplot begins at 0 and extends up to the
maximum value of y. I would like it to extend a little further so that I
can add error bars and a legend to my plot. 

Setting ylim=c(0,..) has the strange effect of removing the 0 from the
axis and changing the interval between tick marks without necessarily
making the axis extend to the upper value specified. It seems it is not
possible to make the axis start at 0 when using ylim.

I see that it's not yet possible to set yaxs = "s" or "e", which I thought
might help. Am I missing something? 

(I'm using R v 0.90)

Karen

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