create_pretty_int_brks: Create clean integer breaks for scales

View source: R/create.R

create_pretty_int_brksR Documentation

Create clean integer breaks for scales

Description

create_pretty_int_brks will take an input of values and generate clean integer break points, scaled by a multiplier variable.

Usage

create_pretty_int_brks(x, max_multiplier = 1.03)

Arguments

x

Data vector.

max_multiplier

Integer vector to control the scaling of the breaks.

Examples

data_for_breaks <- c(1,2,3.8,5,25.5,60)
create_pretty_int_brks(data_for_breaks, max_multiplier = 1.05)


al-obrien/farrago documentation built on April 14, 2023, 6:20 p.m.