by jcheng · 10y ago · 0 comments
> And I couldn’t combine a log-scale with setting the domain of the x-scale to zero
I don't think it's mathematically possible to have a log scale start at zero, you just make the exponent more and more negative. The first two charts look like you've done it but they're not correct--you don't want the values to be log, you want the scale to be log. In ggplot2 you do this by adding "scale_x_log10()" to the plotting expression, and in native R you usually pass log="x" (I believe).