tags:

views:

195

answers:

2

I used the information from this post to create a histogram with logarithmic scale: http://stackoverflow.com/questions/1245273/histogram-with-logarithmic-scale

However, the output from plot looks nothing like the output from hist. Does anyone know how to configure the output from plot to resemble the output from hist? Thanks for the help.

+1  A: 
Richie Cotton
I ended up with using lwd=24. I also changed the color of the bars using the col-attribute. It seems impossible to also add borders to the bars. Or in any case it says that the border-attribute is not a valid graphics parameter.
Pieter
+1  A: 

How about using ggplot2?

x <- rnorm(1000)
qplot(x) + scale_y_log10()

But I agree with Hadley's comment on the other post that having a histogram with a log scale seems weird to me =).

Jonathan Chang
unfortunately I don't have the liberty to install ggplot2 in the environment I'm working in
Pieter