[R] Re: Re: barplot

Peter Dalgaard BSA p.dalgaard at biostat.ku.dk
Thu Dec 9 10:49:33 CET 1999


"Zdenek Skala" <Zdenek.Skala at incoma.cz> writes:

> Sorry for incomplete posting:
> I am using R 0.90.0 for Win95/NT
> Hence, the correct workaround is:
> > barplot(c(.1,.5,1.0),ylim=c(-0.01,1.01))
> as proposed by Prof. Ripley instead of:
> > barplot(c(.1,.5,1.0),ylim=range(-0.01:1.01))
> which works for lower versions (I suppose).
> I have caused all the unclearness by non-citing the R version, so 
> sorry again and thanks for the solution!

Actually, it's a problem in any version of R since way back:

> range(-0.01:1.01)
[1] -0.01  0.99

(a:b gives sequences in steps of 1, starting from a and stopping
before b is exceeded).

-- 
   O__  ---- Peter Dalgaard             Blegdamsvej 3  
  c/ /'_ --- Dept. of Biostatistics     2200 Cph. N   
 (*) \(*) -- University of Copenhagen   Denmark      Ph: (+45) 35327918
~~~~~~~~~~ - (p.dalgaard at biostat.ku.dk)             FAX: (+45) 35327907
-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
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