pretty.log | R Documentation |
Returns a sequence of values on the logarithmic scale suitable for labelling on a logarithmic plot, i.e. the values are equally spaced on the log-scale.
## S3 method for class 'log'
pretty(x, base, n = 5, ...)
x |
A numeric vector. |
base |
Logarithmic base. |
n |
An integer giving the target number of intervals. Non-integer values are rounded down. |
... |
Further arguments passed on to |
# Exponentail breakpoints across values from 0 to 10:
pretty.log(0:10)
# Generate exponential breakpoints for random numbers:
pretty.log(runif(100)*100)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.