This function takes a vector of values that need to be rescaled for a plot. If the vector is a constant, it will return an error indicating that there is not a need to rescale the vector.

vertex_rescale(x, low, high)

Arguments

x

A numeric vector.

low

Minimum of target range.

high

Maximum of target range.

Value

Rescaled numeric vector.