Description Usage Arguments Value Examples
View source: R/Round to nice numbers.R
Rounds a number of vector of numbers to a nice perty number for plot axis or whatever else.
1 2 |
x |
a number or vector |
lower_bound |
logical to round down(default) or round up |
nice_small |
a vector scalar for rounding small numbers (<100) |
nice_big |
a vector scalar for rounding big numbers (>100) |
Returns rounded number or vector
1 2 3 4 5 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.