reScaleToRange-function.RdA function to rescale a certain (x,y) matrix pair into a new (x_new, y) pair.
rescaleToRange(new_xs, old_xs, y)
| new_xs | Numeric vector. The new x labels that we want to rescale to |
|---|---|
| old_xs | Numeric vector. The x labels of the previous matrix |
| y | Numeric vector. The original y values corresponding to old_xs |
Numeric vector corresponding to the y's rescaled to fit the x_new vector