scale_midpoint {arkhe} | R Documentation |
Rescale Continuous Vector (minimum, midpoint, maximum)
Description
Rescales continuous vector to have specified minimum, midpoint and maximum.
Usage
scale_midpoint(x, to = c(0, 1), from = range(x, finite = TRUE), midpoint = 0)
Arguments
x |
A |
to |
A length-two |
from |
A length-two |
midpoint |
A length-one |
Value
A numeric
vector.
Note
For internal use only.
See Also
Other scales:
scale_range()
[Package arkhe version 1.7.0 Index]