scale_range {arkhe} | R Documentation |
Rescales continuous vector to have specified minimum and maximum.
scale_range(x, to = c(0, 1), from = range(x, finite = TRUE))
x |
A |
to |
A length-two |
from |
A length-two |
A numeric
vector.
For internal use only.
Other scales:
scale_midpoint()