View source: R/scale_min_max.R
scale_min_max | R Documentation |
Convert vector to unit scale based on minimum and maximum values.
scale_min_max(x)
x |
vector of numeric values. |
The function is implemented as (x - min(x)) / (max(x) - min(x))
vector of values scaled between 0 and 1.
scale_min_max(1:10)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.