File: rescale-dp.rd

package info (click to toggle)
r-cran-ggplot2 0.8.9-1
  • links: PTS, VCS
  • area: main
  • in suites: wheezy
  • size: 4,084 kB
  • sloc: makefile: 3
file content (20 lines) | stat: -rw-r--r-- 464 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
\name{rescale}
\alias{rescale}
\title{Rescale numeric vector}
\author{Hadley Wickham <h.wickham@gmail.com>}

\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{
\item{x}{data to rescale}
\item{to}{range to scale to}
\item{from}{range to scale from, defaults to range of data}
\item{clip}{should values be clipped to specified range?}
}




\keyword{manip}