rStats.js v1.3.0
    Preparing search index...

    Function pretty

    • About n + 1 equally spaced "round" values (1, 2 or 5 times a power of 10) covering the range of x. Equivalent to R's pretty().

      Parameters

      Returns number[]

      pretty([0.3, 9.6]); // [0, 2, 4, 6, 8, 10]