rescale {ggplot}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))

Arguments

x
to
from

Author(s)

Hadley Wickham <h.wickham@gmail.com>


[Package ggplot version 0.4.2 Index]