[R] Histogram with logarithmic scale

zze-CHOQUET Denis stagiaire FTRD/DMI/SOP denis.choquet at rd.francetelecom.com
Fri Jul 13 11:45:01 CEST 2001


As I thought, my question was not very interesting. I have now found a
solution. The problem, which I think I had not explained clearly, was that I
had values >=0 and I wanted to plot an histogram of log(values+1) but with
the initial axis, (not the logarithmic). These are the commands I used:

ff_function(x)
{
 log(x+1)
}
data2_sapply(data,FUN="ff")
histo_hist(data2)
bornes_histo$mids+(histo$mids[2]-histo$mids[1])/2
ax_round(exp(bornes)-1,2)
axis(3,bornes,labels=ax)

This is OK for me.

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