1

I am trying to plot a distribution of positive integers which contains a lot of variance. I opted to use the log of the y-values but that causes issues due to the inclusion of zeros. I though of plotting log10(n+1), but it seems a bit janky.

Is this solution used more often?
Does it have a name?
Is there a better/more common method?

iHnR
  • 113
  • 2

1 Answers1

1

I'm not aware of a standard name, but it does appear to be fairly common. Programmatically, it's often implemented as log1p ("log of 1 plus").

There's also the "symlog" or "log-modulus" functions when you really care about negative values as well:

Ben Reiniger
  • 12,855
  • 3
  • 20
  • 63