[Rd] Bug with tick marks on x-axis.
Peter Dalgaard BSA
p.dalgaard@biostat.ku.dk
30 Aug 2000 17:22:04 +0200
Patrick Lindsey <patrick.lindsey@luc.ac.be> writes:
> plot(x,y,type="l") # ok
> plot(x,y,type="l",xlim=c(0,-40)) # missing all except the last tick mark (-40)
> I don't know if there is some way to get around this... it might be
> easier to just use a previous version of R which does not contain that
> bug.
> Thank you for any suggestions,
xlim is generally happier if you give it as (min,max) *in that order*.
We're not actually promising that things would work otherwise, are we?
A workaround would be to do the labeling yourself
plot(-x,y,type="l",xlim=c(0,40),axes=F)
box()
axis(1,at=-pretty(x),labels=pretty(x))
axis(2)
--
O__ ---- Peter Dalgaard Blegdamsvej 3
c/ /'_ --- Dept. of Biostatistics 2200 Cph. N
(*) \(*) -- University of Copenhagen Denmark Ph: (+45) 35327918
~~~~~~~~~~ - (p.dalgaard@biostat.ku.dk) FAX: (+45) 35327907
-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
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
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._