RESCALE: Rescale a vector to fit in a certain range

Description Usage Arguments Details Value Author(s) Examples

Description

Rescale a vector to fit in a certain range

Usage

1
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

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

AtmRay documentation built on May 2, 2019, 6:52 a.m.

Related to RESCALE in AtmRay...