View source: R/plot_formatting.R
This will round the data to the measure unit, add a prefix, and add a suffix
1 2 | format_label(measure, currency, measure_unit,
measure_decimal, parenthesis)
|
measure |
The column name of the measure |
currency |
A string, usually |
measure_unit |
A string. Can be |
measure_decimal |
An integer. The number of decimal places to show. |
parenthesis |
A logical. Should parenthesis be added? |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.