Skip to contents

Generate a breaks vector with pre-determined threshold values.

Usage

breaks_manual(thresholds = 0.5)

Arguments

thresholds

<numeric> a numeric vector of ordered, finite thresholds.

Details

Wraps thresholds in the range of input data (which may be null or non-finite). Thresholds that fall outside the range of input are omitted from the output.

See also

Examples

breaks_manual(0)(-10:10)
#> [1] -10   0  10
breaks_manual(c(-10, 0, 10))(-10:10)
#> [1] -10   0  10
breaks_manual(-1:1 * 1e6)(NULL)
#> [1]   -Inf -1e+06  0e+00  1e+06    Inf