new_limits.Rd
A function that rescales a vector of values to have a new minimum and maximum.
new_limits(x, lower, upper, ...)
A vector of numeric values.
The new lower limit or minimum value.
The new upper limit or maximum value.
Additional parameters for the min and max functions.
min
max
A vector of rescaled values.
x <- 1:3 new_limits( x, 0, 1 ) #> [1] 0.0 0.5 1.0