[R] Is ther a possibility to display the log(frequency) instead of the frequency in the hist plot?
ligges at statistik.uni-dortmund.de
Wed Jan 17 22:08:22 CET 2001
Witold Eryk Wolski wrote:
> Is there a possibility to display the log(frequency) instead of the
> frequency in the hist?
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)
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