Description Usage Arguments Details Author(s)
Rescale numeric vector to have specified minimum and maximum.
1 2 |
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? |
adapted from package ggplot2 to avoid package redundancies
If from[1] == from[2] then the mean of interval to is returned.
Hadley Wickham <h.wickham@gmail.com>, Thomas Wutzler Thomas Wutzler
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.