helper_breaks: Augment logarithmic values with intuitive additional breaks

View source: R/simple_math.R

helper_breaksR Documentation

Augment logarithmic values with intuitive additional breaks

Description

Adds intuitive middle values to a vector of values. Useful for when plotting data on logarithmnic plots.

Usage

helper_breaks(x, factors = c(2.5, 5))

Arguments

x

(num vectr) A vector of values.

factors

(num vectr) Factors to use to create the new values. Default is 2.5 and 5.

Examples

#standard log10 breaks
10^(0:5)
#add extra
helper_breaks(10^(0:5))

Deleetdk/kirkegaard documentation built on April 22, 2024, 5:22 p.m.