An object with class "Grid" or which can be
coerced into this class.
fromRange
A numeric vector of length 2 (min and max)
or a matrix with 2 rows (min an max) and one column for
each grid dimension in X. This object gives the original
"old" range.
toRange
A numeric vector of length 2 (min and max) or
a matrix with 2 rows (min an max) and one column for
each grid dimension in X.This object gives the target "new" range
replacing the old one.
Value
An object with the same class as X but with the
each levels rescaled.