[R] Bug in ecdf? Or what am I missing?

Ajay Shah ajayshah at mayin.org
Sat Feb 27 17:35:59 CET 2010


  x <- c(6.6493705109108, 7.1348436721241, 8.76886994525624,
         6.12907548096037, 6.88379118678109, 7.17841879427688,
         7.90737237492867, 7.1207373264833, 7.82949407630692,
         6.90411547316105)
  plot(ecdf(x), log="x")

It does the plot fine, but complains:

  Warning message:
  In xy.coords(x, y, xlabel, ylabel, log) :
    1 x value <= 0 omitted from logarithmic plot

This seems to be an error since all the values in x are positive.

Thanks,

-- 
Ajay Shah                                      http://www.mayin.org/ajayshah  
ajayshah at mayin.org                             http://ajayshahblog.blogspot.com
<*(:-? - wizard who doesn't know the answer.



More information about the R-help mailing list