View source: R/helper_functions.r
normalize_data | R Documentation |
This function normalizes the given data to a specified plot range.
normalize_data(data, data_min, data_max, plot_range)
data |
The data to be normalized. |
data_min |
The minimum value of the data. |
data_max |
The maximum value of the data. |
plot_range |
The range to normalize the data to. |
The normalized data.
normalize_data(c(1, 2, 3, 4, 5), 1, 5, 10)
normalize_data(c(10, 20, 30, 40, 50), 10, 50, 100)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.