Skip to content
Prev 9019 / 398503 Next

Is ther a possibility to display the log(frequency) instead of the frequency in the hist plot?

Witold Eryk Wolski wrote:
I think you want something like the following example:

 x <- runif(100) * 10
 my.hist <- hist(x)
 my.hist   # have a look at the values!
 my.hist$counts <- log(my.hist$counts, 10)  # logarithm with base 10
 plot(my.hist)  # now plot it again with log(frequency)


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