breaks_linear: Breaks linear

View source: R/scale_breaks.R

breaks_linearR Documentation

Breaks linear

Description

Generate a breaks vector of size n with linearly spaced breaks.

Usage

breaks_linear(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

Other breaks: breaks_log(), breaks_manual(), breaks_power(), breaks_symlog(), breaks_trans()

Examples

breaks_linear(5)(-10:10)
breaks_linear()(-1:1)


anthonynorth/rdeck documentation built on Aug. 11, 2024, 1:40 p.m.