getOptScaleUnit: 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

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
getOptScaleUnit(0, 30) # 10
## or
vec <- c(0, 30)
getOptScaleUnit(vec)   # 10

## End(Not run)

madlogos/aseshms documentation built on May 21, 2019, 11:03 a.m.