Description Usage Arguments Value Note Examples
Rescale values to a new range
1 2 3 4 5 6 7 8 9 10 11 12 |
x |
A numeric vector or |
to |
The lower and upper bounds of the new range. Default |
from |
(optional) The lower and upper bounds of the old range (calculated from |
... |
Additional arguments (not used). |
A new object whose values have been rescaled.
Objects with values that are all equal (e.g., all zeroes) will be returned as-is.
This behaviour differs from scales:rescale
which would return a value of 0.5
.
1 2 3 4 5 6 7 8 9 10 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.