Please have a look at the reprex at the end of the post. I generate some lognormally distributed values and then I bin the distribution using a non-uniform bin (the grid is evenly spaced if I take its logarithm). The point is not the maths, but the fact that, using annotation_logticks ( see