View source: R/waffle_charts.R
round_preserve_sum | R Documentation |
The function rounds values preserving total sums
round_preserve_sum(x, digits = 0)
x |
numeric vector of values to be rounded |
digits |
integer indicating the number of decimal places. See |
Returns a numeric vector.
The function is written as a communal effort. Main authors are josliber and BioStatMatt.
Other waffle:
waffle_chart()
,
waffleize()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.