powered by
Get piecewse normalised values from a vector of observations
piecenorm(obs, breaks, polarity = 1)
Vector of normalised observations
A vector of observations.
The breaks to normalise to.
Which direction should the normalisation occur.
obs <- exp(1:10) breaks <- c(min(obs), 8, 20, 100, 1000, 25000) y <- piecenorm(obs, breaks) plot(obs, y, type = 'l', xlab = "Original Values", ylab = "Normalised Values")
Run the code above in your browser using DataLab