rescale.numeric | R Documentation |
Rescale continuous vector to have specified minimum and maximum
rescale.numeric(
x,
to = c(0, 1),
from = range(x, na.rm = TRUE, finite = TRUE),
...
)
x |
A vector to re-scale |
to |
output range (numeric vector of length two) |
from |
input range (vector of length two). If not given, is
calculated from the range of |
From: The package scales
Re-scaled vector
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.