Skip to contents

Generate a breaks vector of size n with log1p symlog_trans spaced breaks.

Usage

breaks_symlog(n = 10)

Arguments

n

<int> the size of the output vector. Ouput size will be at least length-2 for finite input.

Details

If input range is non-finite, an empty vector is returned.

See also

Examples

breaks_symlog(5)(-10:10)
#> [1] -10.000000  -2.316625   0.000000   2.316625  10.000000
breaks_symlog(5)(0:10)
#> [1]  0.0000000  0.8211603  2.3166248  5.0401054 10.0000000