Description Usage Arguments Value Author(s) Examples
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.
1 2 3 |
x |
numeric vector |
numeric vector c(min, max)
Yiying Wang, wangy@aetna.com
1 2 3 4 5 6 | ## Not run:
optimizeScaleRange(c(3.1, 5.6)) # c(0, 6)
optimizeScaleRange(c(-4, -2)) # c(-4, 0)
optimizeScaleRange(c(-4.1, 15.6)) # c(-5, 20)
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.