RESCALE | R Documentation |
Rescale a vector to fit in a certain range
RESCALE(x, nx1, nx2, minx, maxx)
x |
vector |
nx1 |
new minimum |
nx2 |
new maximum |
minx |
old min |
maxx |
old max |
Used for graphics.
scale vector is returned
Jonathan M. Lees<jonathan.lees.edu>
x = rnorm(10)
RESCALE(x, 3, 9, min(x), max(x) )
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.