By default the numeric vectors are first rounded to three significant figures. Then scales::comma is only applied to values greater than or equal to 1000 to ensure that labels are permitted to have different numbers of decimal places.
Arguments
- x
A numeric vector to format.
- digits
A whole number specifying the number of significant figures.
- ...
Additional arguments passed to scales::comma.