| log_pretty | R Documentation |
Compute "log-pretty" tick values in the original (non-transformed) space
using decade-aware sub-multiples. Ranges spanning at least three orders of
magnitude collapse to one tick per decade (e.g. 1, 10, 100); narrower
ranges include classic engineering sub-multiples (1, 2, 5 or
1, 2, 3, 5, 7); ranges narrower than half a decade fall back to
pretty on the original scale because dense log ticks
look clustered there.
log_pretty(range_orig, base = 10)
range_orig |
Numeric length-2 range in the original (non-log) scale.
All values must be strictly positive; otherwise the function falls back
to |
base |
Logarithm base. Use |
A numeric vector of tick values in the original scale.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.