NiceNumber: Nice numbers: simple decimal numbers

View source: R/NiceNumber.R

NiceNumberR Documentation

Nice numbers: simple decimal numbers

Description

Calculates a close nice number, i. e. a number with simple decimals.

Usage

NiceNumber(x = 6, round = TRUE)

Arguments

x

A number

round

Should the number be rounded?

Details

Calculates a close nice number, i. e. a number with simple decimals.

Value

A number with simple decimals

Author(s)

Jose Luis Vicente Villardon

References

Heckbert, P. S. (1990). Nice numbers for graph labels. In Graphics Gems (pp. 61-63). Academic Press Professional, Inc..

See Also

PrettyTicks

Examples

NiceNumber(0.892345)

MultBiplotR documentation built on Nov. 21, 2023, 5:08 p.m.