Closed dmurdoch closed 2 years ago
The digits calculation I did is appropriate for evenly spaced breaks. It might make sense to base it on the smallest gap instead. In that case, I think a reasonable formula would be
digits <- round(-log10(min(diff(breaks))))
but I haven't tested that; I don't know of any real use cases for uneven breaks.
Thanks for reporting this issue and for the fix. I have integrated it and it will be part of DescTools 0.99.45, which will be published soon.
This fixes issue #86 .