Description Usage Arguments Value Examples
View source: R/ggplot_functions.R
Format a vector of numeric values according to the International System of Units.
(ie: 1,000 becomes "1 k", 2,500 becomes "2.5 k") See: http://en.wikipedia.org/wiki/SI_prefix
1 | scale_si_unit(sep = " ", ...)
|
sep |
Seperator to use between number and unit (defaults to " ") |
... |
Passed by |
Used with scale_*_continuous, returns formatted axis labels
1 2 3 4 | ## Not run:
ggplot(diamonds, aes(x = price)) + geom_density() + scale_x_continuous(labels = scale_si_unit())
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.