normalize_data {plotcli} | R Documentation |
Normalize data
Description
This function normalizes the given data to a specified plot range.
Usage
normalize_data(data, data_min, data_max, plot_range)
Arguments
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. |
Value
The normalized data.
Examples
normalize_data(c(1, 2, 3, 4, 5), 1, 5, 10)
normalize_data(c(10, 20, 30, 40, 50), 10, 50, 100)
[Package plotcli version 0.1.0 Index]