get_breaks: Returns custom break points for plots

Description Usage Arguments Value Examples

View source: R/get_breaks.R

Description

Returns a numeric vector with custom break points. Break points are defined so as to isolate the highest positive value and lowest negative value, include zero, and split the remaining observations into groups of similar sizes.

Usage

1
get_breaks(x, n = 9)

Arguments

x

A numeric vector

n

Number of groups defined by the break points

Value

A numeric vector with the break points

Examples

1
2
get_breaks(rnorm(n = 100, mean = 0, sd = 100))
get_breaks(c(-100, seq(-80, -10, 10), 0, seq(10, 80, 10) 100))

andremenegatti/cagedExplorer documentation built on July 1, 2020, 1:25 a.m.