RESCALE {RSEIS}R Documentation

Rescale a vector to fit in a certain range

Description

Rescale a vector to fit in a certain range

Usage

RESCALE(x, nx1, nx2, minx, maxx)

Arguments

x vector
nx1 new minimum
nx2 new maximum
minx old min
maxx old max

Details

Used for graphics.

Value

scale vector is returned

Author(s)

Jonathan M. Lees<jonathan.lees.edu>

Examples

x = rnorm(10)
RESCALE(x, 3, 9, min(x), max(x) )

[Package RSEIS version 2.1-4 Index]