Description Usage Arguments Examples
Various scale transformation functions. These will keep the sign of x (and are basically sign(x) * FUN(abs(x))
)
1 2 3 4 5 6 7 | sqrt_transform(x)
power_transform(x, exp = 1/2)
log_transform(x, base = exp(1))
FUN_transform(x, FUN, ...)
|
x |
the data vector to transform |
exp |
the exponent for the transoformation x^exp |
base |
the logarithm base |
FUN |
the transformation function, defined on the range [0, +Inf] |
... |
additional arguments for |
1 2 3 4 5 6 7 8 | curve(sqrt_transform(x), -2, 2, n = 1000)
curve(power_transform(x), -2, 2, n = 1000)
curve(power_transform(x, 3), -2, 2, n = 1000)
curve(log_transform(x), -2, 2, n = 1000)
curve(log_transform(x, 10), -2, 2, n = 1000)
curve(FUN_transform(x, FUN = function(x) x + 2 * x^3), -2, 2)
curve(FUN_transform(x, FUN = function(x, a, b) x + a * x^b, a = 2, b = 3), -2, 2)
curve(FUN_transform(x, FUN = function(x, a, b) x + a * x^b, a = 4, b = 5), -2, 2)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.