Re: [R] ggplot2: scale_y_log10() with geom_histogram

2011-03-29 Thread Joshua Wiley
Hi Markus, In some ways, this is not the most elegant solution ever, as you have to manually pick some limits, but it is fairly straightforward: qplot(exp(rnorm(1000))) + geom_histogram(colour = "cornsilk", fill ="darkblue") + scale_x_sqrt() + scale_y_log10() + coord_cartesian(ylim = c(10

[R] ggplot2: scale_y_log10() with geom_histogram

2011-03-29 Thread Markus Loecher
Dear ggplot2 users, is there an easy/elegant way to suppress zero count bars in histograms with logarithmic y axis ? One (made up) example would be qplot(exp(rnorm(1000))) + geom_histogram(colour = "cornsilk", fill = "darkblue") + scale_x_sqrt() + scale_y_log10() Thanks! Markus [[alte