From p.dalgaard@biostat.ku.dk  Wed Aug 30 16:22:04 2000
From: p.dalgaard@biostat.ku.dk (Peter Dalgaard BSA)
Date: 30 Aug 2000 17:22:04 +0200
Subject: [Rd] Bug with tick marks on x-axis.
In-Reply-To: Patrick Lindsey's message of "Wed, 30 Aug 2000 17:02:15 +0200 (MET DST)"
References: <200008301502.RAA23982@alpha.luc.ac.be>
Message-ID: <x2wvgy4vvn.fsf@blueberry.kubism.ku.dk>

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


[Rd] Bug with tick marks on x-axis.
Peter Dalgaard BSA