rescale {ggplot2}R Documentation

Rescale numeric vector

Description

Rescale numeric vector to have specified minimum and maximum.

Usage

rescale(x, to=c(0,1), from=range(x, na.rm=TRUE), clip = TRUE)

Arguments

x

data to rescale

to

range to scale to

from

range to scale from, defaults to range of data

clip

should values be clipped to specified range?

Author(s)

Hadley Wickham <h.wickham@gmail.com>


[Package ggplot2 version 0.8.9 Index]