[R] Using logarithmic y-axis (density) in a histogram

david.bolius at art.admin.ch david.bolius at art.admin.ch
Thu Mar 8 14:10:55 CET 2007


Hi, 

I am searching for a possibility to display a logarithimic y-axis in a histogram. With plot that's easy (e.g. 
plot(1:10, log="y") 
but for histograms this does not work the same way: I tried
hist(rnorm(1000), freq=FALSE, seq(-4, 4, .5), ylim=c(0.001, 0.5), log="y") 
Which gives the expected histogram but also warnings for my log="y" command (""log" is not a graphical parameter in: axis(side, at, labels, tick, line, pos, outer, font, lty, lwd,  ") and no logarithmic y-axis. Any ideas how to achieve that, I couldn't find anything?

Best regards
David 


***************************************************************
Dr. David Bolius
Agroscope Reckenholz-Tänikon ART
Gruppe Lufthygiene/Klima
Reckenholzstrasse 191,  CH-8046 Zürich
Tel.    ++41 (0)44 / 377 75 13   FAX     ++41 (0)44 / 377 72 01
david.bolius at art.admin.ch   http://www.art.admin.ch/



More information about the R-help mailing list