Rescale vector to have specified minimum, midpoint, and maximum
rescale_mid(x, to, from, mid, ...)# S3 method for numeric
rescale_mid(x, to = c(0, 1), from = range(x, na.rm = TRUE), mid = 0, ...)
# S3 method for logical
rescale_mid(x, to = c(0, 1), from = range(x, na.rm = TRUE), mid = 0, ...)
# S3 method for dist
rescale_mid(x, to = c(0, 1), from = range(x, na.rm = TRUE), mid = 0, ...)
# S3 method for POSIXt
rescale_mid(x, to = c(0, 1), from = range(x, na.rm = TRUE), mid, ...)
# S3 method for Date
rescale_mid(x, to = c(0, 1), from = range(x, na.rm = TRUE), mid, ...)
# S3 method for integer64
rescale_mid(x, to = c(0, 1), from = range(x, na.rm = TRUE), mid = 0, ...)
vector of values to manipulate.
output range (numeric vector of length two)
input range (vector of length two). If not given, is
calculated from the range of x
mid-point of input range
other arguments passed on to methods