Lower and upper endpoints of the interval
to which the values of x should be rescaled.
xrange
Optional range of values of x that should be mapped
to the new interval.
Value
An object of the same type as x.
Details
These functions rescale a dataset x
so that its values range exactly between the limits
from and to.
The method for pixel images (objects of class "im")
applies this scaling to the pixel values of x.
Rescaling cannot be performed if the values in x are not
interpretable as numeric, or if the values in x are all equal.