View source: R/utility_functions.R
rescaleValues | R Documentation |
Rescales vector of values to span between specified range [new.min, new.max]
rescaleValues(values, new.min = 0, new.max = 1)
values |
Numeric vector of values to rescale. |
new.min |
Numeric specfiying new minimum. If unspecified, default is 0. |
new.max |
Numeric specfiying new maximum. If unspecified, default is 1. |
Numeric vector of rescaled values
Nicholas Mikolajewicz
# rescale values
values <- rescaleValues(values)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.