getOptScaleRange: Auto suggest a range to beautify the axes of a masChart...

Description Usage Arguments Value Author(s) Examples

Description

Given a vector, automatically define the range to beautify the axes scale. You can then use getOptScaleUnit to get the optimized major unit of the scale.

Usage

1

Arguments

x

numeric vector

Value

numeric vector c(min, max)

Author(s)

Yiying Wang, wangy@aetna.com

Examples

1
2
3
4
5
6
## Not run: 
getOptScaleRange(c(3.1, 5.6))    # c(0, 6)
getOptScaleRange(c(-4, -2))      # c(-4, 0)
getOptScaleRange(c(-4.1, 15.6))  # c(-5, 20)

## End(Not run)

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