x <- matrix(1:15, ncol = 3)
# uses min and max of the data
relrange(x)
# uses min and max determined by other knowledge of the variables
relrange(x, globalmin = c(0, 0, 0), globalmax = c(6, 10, 20))
Run the code above in your browser using DataLab