[R] Why there are no log="xy" parameter in the hist() function?

Prof Brian D Ripley ripley at stats.ox.ac.uk
Sun Jan 14 13:04:31 CET 2001


On Sun, 14 Jan 2001, Witold Eryk Wolski wrote:

> Hi!
> Why there are no log="xy" parameter in the hist() function?
> Im looking for this option.

What would it mean?  First, hist gives a density, so plotting on a log x
scale is not correct: you would want the density of log x, not x, and you
cna of course get that by hist(log(x)). Second, if you want to plot a log
density, you should use a better density estimate, one that does not return
0, for example.

If perchance what you are calling hist on is a discrete variate, you should
not be using hist ....

> I am using R1.1.1.

As ever, we suggest you keep R up to date. 1.2.1 is due tomorrow.

-- 
Brian D. Ripley,                  ripley at stats.ox.ac.uk
Professor of Applied Statistics,  http://www.stats.ox.ac.uk/~ripley/
University of Oxford,             Tel:  +44 1865 272861 (self)
1 South Parks Road,                     +44 1865 272860 (secr)
Oxford OX1 3TG, UK                Fax:  +44 1865 272595

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