Description Usage Arguments Value References Examples
Classic algorithm to create pretty breaks from a numeric vector, see reference. In contrast to base::pretty()
, this function works for different number systems and with different notion of "pretty" numbers.
1 |
x |
Numpy array of size >= 2. Used to derive breaks. |
n |
Approximate number of intervals between breaks. Defaults to 5. |
p |
List of basic rounding numbers in [1, base), e.g., |
base |
Radix of the number system >= 2. Defaults to 10. |
tol |
Numeric tolerance for close 0 breaks. Defaults to 1e-9. |
A vector with breaks.
W. J. Dixon and R. A. Kronmal (1965). The choice of origin and scale for graphs. Journal of the ACM, 12(2):259-261.
1 2 3 4 5 6 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.