scale_midpoint | R Documentation |
Rescales continuous vector to have specified minimum, midpoint and maximum.
scale_midpoint(x, to = c(0, 1), from = range(x, finite = TRUE), midpoint = 0)
x |
A |
to |
A length-two |
from |
A length-two |
midpoint |
A length-one |
A numeric
vector.
For internal use only.
Other scales:
scale_range()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.