powered by
This function normalizes the given data to a specified plot range.
normalize_data(data, data_min, data_max, plot_range)
The normalized data.
The data to be normalized.
The minimum value of the data.
The maximum value of the data.
The range to normalize the data to.
normalize_data(c(1, 2, 3, 4, 5), 1, 5, 10) normalize_data(c(10, 20, 30, 40, 50), 10, 50, 100)
Run the code above in your browser using DataLab