breaks_power: Breaks power

View source: R/scale_breaks.R

breaks_powerR Documentation

Breaks power

Description

Generate a breaks vector of size n with exponentially power_trans spaced breaks.

Usage

breaks_power(n = 10, exponent = 0.5)

Arguments

n

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

exponent

<number> The power exponent

Details

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

See Also

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

Examples

breaks_power(5)(-10:10)
breaks_power(5, exponent = 1 / 3)(-1:1)


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