| number_options | R Documentation | 
Control the settings for formatting numbers globally.
number_options(
  decimal.mark = ".",
  big.mark = " ",
  style_positive = c("none", "plus", "space"),
  style_negative = c("hyphen", "minus", "parens"),
  currency.prefix = "$",
  currency.suffix = "",
  currency.decimal.mark = decimal.mark,
  currency.big.mark = setdiff(c(".", ","), currency.decimal.mark)[1],
  ordinal.rules = ordinal_english()
)
decimal.mark | 
 The character to be used to indicate the numeric
decimal point.  The default (  | 
big.mark | 
 Character used between every 3 digits to separate thousands.
The default (  | 
style_positive | 
 A string that determines the style of positive numbers: 
 The default (  | 
style_negative | 
 A string that determines the style of negative numbers: 
 The default (  | 
currency.prefix, currency.suffix, currency.decimal.mark, currency.big.mark | 
 Settings for   | 
ordinal.rules | 
 Setting for   | 
The old options invisibly
# Default number formatting
x <- c(0.1, 1, 1000)
label_number()(x)
# Now again with new options set
number_options(style_positive = "plus", decimal.mark = ",")
label_number()(x)
# The options are the argument names with a 'scales.'-prefix
options("scales.style_positive")
# Resetting the options to their defaults
number_options()
label_number()(x)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.