scale_big_dollar | R Documentation |
Format a vector of numeric values according to monetary abbreviations.
(ie: 1,000 becomes "1 k", 2,500,000 becomes "2.5 B") See: https://www.wallstreetoasis.com/forums/abbreviation-for-thousands-millions-billions-trillion
scale_big_dollar(x, sep = " ", suffix_n = F)
sep |
Seperator to use between number and unit (defaults to " "). |
suffix_n |
Use "Bn" and "Tn" instead of "B" and "T". |
Character vector of formatted dollar values.
## Not run:
scale_big_dollar(1000)
scale_big_dollar(1000000000)
scale_big_dollar(1000000000, suffix_n = T)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.