powered by
Rescale a vector to fit in a certain range
RESCALE(x, nx1, nx2, minx, maxx)
scale vector is returned
vector
new minimum
new maximum
old min
old max
Jonathan M. Lees<jonathan.lees.edu>
Used for graphics.
x = rnorm(10) RESCALE(x, 3, 9, min(x), max(x) )
Run the code above in your browser using DataLab