| rescale {ggplot2} | R Documentation |
Rescale numeric vector to have specified minimum and maximum.
rescale(x, to=c(0,1), from=range(x, na.rm=TRUE), clip = TRUE)
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? |
Hadley Wickham <h.wickham@gmail.com>