optimizeScaleUnit: Auto suggest a major unit number to beautify the axes of a...

Description Usage Arguments Value Author(s) Examples

Description

Given a numeric range, automatically define a number that can serve as the major unit to beautify the axes scale. You are recommended to use getOptScaleRange beforehand to get the optimized range of the scale.

Usage

1
2
3

Arguments

...

you can either pass c(min, max) or min, max

Value

a numeric scalar

Author(s)

Yiying Wang, wangy@aetna.com

Examples

1
2
3
4
5
6
7
8
## Not run: 
# Both of the following expressions are OK
optimizeScaleUnit(0, 30) # 10
## or
vec <- c(0, 30)
optimizeScaleUnit(vec)   # 10

## End(Not run)

madlogos/asesmso documentation built on June 26, 2019, 12:17 a.m.