nice | R Documentation |
The function calls pretty
for linear scale. For a log-scale nice are computed using a set of
specified number in each decade.
nice(x, log = FALSE, lpos = c(1, 2, 5), xmx = 4, ...)
x |
Numerical vector to |
log |
Logical. Is the scale logartimic? |
lpos |
Numeric. Numbers between 1 and 10 giving the desired breakpoints in this interval. |
xmx |
Numeric. The maximal (absolute) power of 10 to be used for a log-scale. |
... |
Arguments passed on to |
A vector of breakpoints.
Bendix Carstensen, b@bxc.dk, http://bendixcarstensen.com
pretty
nice( exp( rnorm( 100 ) ), log=TRUE )
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.