Hi, I have a dataset where we are trying to model the resistance of horses' lungs. One of the covariates is the administered pressure. This variable is a little odd in the sense that an increase of pressure corresponds to a "more negative value" of the covariate. A graph representing the change in resistance in function of the pressure would be helpful for the biologist. But it should have the x-axis (pressure) going from positive to negative pressure values to correspond to an increase in pressure (this representation is clearer to the biologists). Now under Windows 95 and 98 with rw1011, I get a problem with the tick marks of the x-axis. Here is a small example: x <- (0:-4)*10 y <- rnorm(5) 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, Patrick. -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.- 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 _._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._
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 _._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._
Possibly Parallel Threads
- Is there a way to change x and y axis tick mark inside plot()?
- in axis() suppressing axis line but keeping tick marks
- need tick marks by 10s or 20s up to 200 on x axis
- axis labels at subset of tick marks
- Lattice graphics: minor tick marks and panel.axis() question(s)