log_trans | R Documentation |
Applies a log transform on the input: y = log(abs(x), b)
, where:
x
is the input vector
b
is the log base
log_trans(base = exp(1))
base |
< |
If x
is negative, the result is multiplied by -1.
This transform requires that the input range doesn't cross zero. Transforming an input that crosses 0 will succeed and give predictable output, but its inverse will not, due to unsigned 0 (i.e. -1 * log(1) == log(1)).
Other transform:
power_trans()
,
symlog_trans()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.