| Title: | Country Scales |
|---|---|
| Description: | Format numbers, percentages and currencies, and label 'ggplot2' axes, using country- or locale-specific conventions such as the thousands separator, decimal mark, currency symbol placement, and sign placement. Locale data is sourced from the Unicode Common Locale Data Repository (CLDR, <https://cldr.unicode.org>) via the 'i18n' package, covering several hundred locales in addition to dedicated helpers for Germany, Switzerland and the United States. |
| Authors: | Stefan Moog [aut, cre], scales authors [aut] (Authors of included code from the scales package), Posit, PBC [cph] (Copyright holder of included code from the scales package) |
| Maintainer: | Stefan Moog <[email protected]> |
| License: | MIT + file LICENSE |
| Version: | 0.3.0 |
| Built: | 2026-09-29 21:07:12 UTC |
| Source: | https://github.com/cran/countryscales |
A data.frame of country names, language codes, country codes and locales
countriescountries
An object of class tbl_df (inherits from tbl, data.frame) with 377 rows and 4 columns.
https://cdn.simplelocalize.io/public/v1/locales
Re-Imported from i18n to silent R CMD check errors.
currenciescurrencies
An object of class tbl_df (inherits from tbl, data.frame) with 175070 rows and 7 columns.
https://rich-iannone.github.io/i18n/
ggplot2 demo
demo_number(x, scale_name, ...)demo_number(x, scale_name, ...)
x |
a numeric |
scale_name |
scale name |
... |
further arguments to be passed to the scale |
A ggplot object, invisibly printed as a demo of the requested
scale.
demo_number(c(32, 212), scale_name = "number_locale")demo_number(c(32, 212), scale_name = "number_locale")
A data.frame of names, codes and locales for G20 countries
g20g20
An object of class tbl_df (inherits from tbl, data.frame) with 19 rows and 5 columns.
https://en.wikipedia.org/wiki/G20, https://cdn.simplelocalize.io/public/v1/locales
A dataset containing data on GDP per capita, life expectancy and population size of 183 countries for 1800 to 2015
gapminder gapminder15gapminder gapminder15
A data frame with 14,823 rows and 7 variables:
country name
country code
world region
year
life expectancy at birth, in years
GDP per capita, in dollars PPP
population size, in persons
An object of class tbl_df (inherits from tbl, data.frame) with 183 rows and 7 columns.
The label_xxx_ar family of functions makes it easy to format numbers in decimal format, as percentages or as currencies.
label_number_ar( accuracy = 1, scale = 1, prefix = "", suffix = "", big.mark = NULL, decimal.mark = NULL, trim = TRUE, ... ) label_percent_ar( accuracy = 1, scale = 100, prefix = "", suffix = NULL, big.mark = NULL, decimal.mark = NULL, trim = TRUE, ... ) label_currency_ar( accuracy = 1, scale = 1, currency = "ARS", prefix = NULL, suffix = NULL, big.mark = NULL, decimal.mark = NULL, trim = TRUE, ... )label_number_ar( accuracy = 1, scale = 1, prefix = "", suffix = "", big.mark = NULL, decimal.mark = NULL, trim = TRUE, ... ) label_percent_ar( accuracy = 1, scale = 100, prefix = "", suffix = NULL, big.mark = NULL, decimal.mark = NULL, trim = TRUE, ... ) label_currency_ar( accuracy = 1, scale = 1, currency = "ARS", prefix = NULL, suffix = NULL, big.mark = NULL, decimal.mark = NULL, trim = TRUE, ... )
accuracy |
A number to round to. Use (e.g.) Applied to rescaled data. |
scale |
A scaling factor: |
prefix |
Additional text to display before the number. The suffix is
applied to absolute value before |
suffix |
Additional text to display after the number. |
big.mark |
Character used between every 3 digits to separate thousands.
The default ( |
decimal.mark |
The character to be used to indicate the numeric
decimal point. The default ( |
trim |
Logical, if |
... |
Other arguments passed on to |
currency |
currency symbol |
label_number_ar formats numbers in decimal format.
label_percent_ar formats numbers as percentages.
label_currency_ar formats numbers as currencies.
A labelling function that takes a numeric vector and returns a character vector.
# rendered directly (rather than via scales::demo_continuous()) because # several locales' group/currency signs aren't in the check device's font label_number_ar()(c(-1e6, 0, 1e6)) label_percent_ar(accuracy = .01)(c(-1, 0, 1)) label_currency_ar(accuracy = .1)(c(-1e6, 0, 1e6))# rendered directly (rather than via scales::demo_continuous()) because # several locales' group/currency signs aren't in the check device's font label_number_ar()(c(-1e6, 0, 1e6)) label_percent_ar(accuracy = .01)(c(-1, 0, 1)) label_currency_ar(accuracy = .1)(c(-1e6, 0, 1e6))
The label_xxx_at family of functions makes it easy to format numbers in decimal format, as percentages or as currencies.
label_number_at( accuracy = 1, scale = 1, prefix = "", suffix = "", big.mark = NULL, decimal.mark = NULL, trim = TRUE, ... ) label_percent_at( accuracy = 1, scale = 100, prefix = "", suffix = NULL, big.mark = NULL, decimal.mark = NULL, trim = TRUE, ... ) label_currency_at( accuracy = 1, scale = 1, currency = "EUR", prefix = NULL, suffix = NULL, big.mark = NULL, decimal.mark = NULL, trim = TRUE, ... )label_number_at( accuracy = 1, scale = 1, prefix = "", suffix = "", big.mark = NULL, decimal.mark = NULL, trim = TRUE, ... ) label_percent_at( accuracy = 1, scale = 100, prefix = "", suffix = NULL, big.mark = NULL, decimal.mark = NULL, trim = TRUE, ... ) label_currency_at( accuracy = 1, scale = 1, currency = "EUR", prefix = NULL, suffix = NULL, big.mark = NULL, decimal.mark = NULL, trim = TRUE, ... )
accuracy |
A number to round to. Use (e.g.) Applied to rescaled data. |
scale |
A scaling factor: |
prefix |
Additional text to display before the number. The suffix is
applied to absolute value before |
suffix |
Additional text to display after the number. |
big.mark |
Character used between every 3 digits to separate thousands.
The default ( |
decimal.mark |
The character to be used to indicate the numeric
decimal point. The default ( |
trim |
Logical, if |
... |
Other arguments passed on to |
currency |
currency symbol |
label_number_at formats numbers in decimal format.
label_percent_at formats numbers as percentages.
label_currency_at formats numbers as currencies.
A labelling function that takes a numeric vector and returns a character vector.
# rendered directly (rather than via scales::demo_continuous()) because # several locales' group/currency signs aren't in the check device's font label_number_at()(c(-1e6, 0, 1e6)) label_percent_at(accuracy = .01)(c(-1, 0, 1)) label_currency_at(accuracy = .1)(c(-1e6, 0, 1e6))# rendered directly (rather than via scales::demo_continuous()) because # several locales' group/currency signs aren't in the check device's font label_number_at()(c(-1e6, 0, 1e6)) label_percent_at(accuracy = .01)(c(-1, 0, 1)) label_currency_at(accuracy = .1)(c(-1e6, 0, 1e6))
The label_xxx_au family of functions makes it easy to format numbers in decimal format, as percentages or as currencies.
label_number_au( accuracy = 1, scale = 1, prefix = "", suffix = "", big.mark = NULL, decimal.mark = NULL, trim = TRUE, ... ) label_percent_au( accuracy = 1, scale = 100, prefix = "", suffix = NULL, big.mark = NULL, decimal.mark = NULL, trim = TRUE, ... ) label_currency_au( accuracy = 1, scale = 1, currency = "AUD", prefix = NULL, suffix = NULL, big.mark = NULL, decimal.mark = NULL, trim = TRUE, ... )label_number_au( accuracy = 1, scale = 1, prefix = "", suffix = "", big.mark = NULL, decimal.mark = NULL, trim = TRUE, ... ) label_percent_au( accuracy = 1, scale = 100, prefix = "", suffix = NULL, big.mark = NULL, decimal.mark = NULL, trim = TRUE, ... ) label_currency_au( accuracy = 1, scale = 1, currency = "AUD", prefix = NULL, suffix = NULL, big.mark = NULL, decimal.mark = NULL, trim = TRUE, ... )
accuracy |
A number to round to. Use (e.g.) Applied to rescaled data. |
scale |
A scaling factor: |
prefix |
Additional text to display before the number. The suffix is
applied to absolute value before |
suffix |
Additional text to display after the number. |
big.mark |
Character used between every 3 digits to separate thousands.
The default ( |
decimal.mark |
The character to be used to indicate the numeric
decimal point. The default ( |
trim |
Logical, if |
... |
Other arguments passed on to |
currency |
currency symbol |
label_number_au formats numbers in decimal format.
label_percent_au formats numbers as percentages.
label_currency_au formats numbers as currencies.
A labelling function that takes a numeric vector and returns a character vector.
# rendered directly (rather than via scales::demo_continuous()) because # several locales' group/currency signs aren't in the check device's font label_number_au()(c(-1e6, 0, 1e6)) label_percent_au(accuracy = .01)(c(-1, 0, 1)) label_currency_au(accuracy = .1)(c(-1e6, 0, 1e6))# rendered directly (rather than via scales::demo_continuous()) because # several locales' group/currency signs aren't in the check device's font label_number_au()(c(-1e6, 0, 1e6)) label_percent_au(accuracy = .01)(c(-1, 0, 1)) label_currency_au(accuracy = .1)(c(-1e6, 0, 1e6))
The label_xxx_br family of functions makes it easy to format numbers in decimal format, as percentages or as currencies.
label_number_br( accuracy = 1, scale = 1, prefix = "", suffix = "", big.mark = NULL, decimal.mark = NULL, trim = TRUE, ... ) label_percent_br( accuracy = 1, scale = 100, prefix = "", suffix = NULL, big.mark = NULL, decimal.mark = NULL, trim = TRUE, ... ) label_currency_br( accuracy = 1, scale = 1, currency = "BRL", prefix = NULL, suffix = NULL, big.mark = NULL, decimal.mark = NULL, trim = TRUE, ... )label_number_br( accuracy = 1, scale = 1, prefix = "", suffix = "", big.mark = NULL, decimal.mark = NULL, trim = TRUE, ... ) label_percent_br( accuracy = 1, scale = 100, prefix = "", suffix = NULL, big.mark = NULL, decimal.mark = NULL, trim = TRUE, ... ) label_currency_br( accuracy = 1, scale = 1, currency = "BRL", prefix = NULL, suffix = NULL, big.mark = NULL, decimal.mark = NULL, trim = TRUE, ... )
accuracy |
A number to round to. Use (e.g.) Applied to rescaled data. |
scale |
A scaling factor: |
prefix |
Additional text to display before the number. The suffix is
applied to absolute value before |
suffix |
Additional text to display after the number. |
big.mark |
Character used between every 3 digits to separate thousands.
The default ( |
decimal.mark |
The character to be used to indicate the numeric
decimal point. The default ( |
trim |
Logical, if |
... |
Other arguments passed on to |
currency |
currency symbol |
label_number_br formats numbers in decimal format.
label_percent_br formats numbers as percentages.
label_currency_br formats numbers as currencies.
A labelling function that takes a numeric vector and returns a character vector.
# rendered directly (rather than via scales::demo_continuous()) because # several locales' group/currency signs aren't in the check device's font label_number_br()(c(-1e6, 0, 1e6)) label_percent_br(accuracy = .01)(c(-1, 0, 1)) label_currency_br(accuracy = .1)(c(-1e6, 0, 1e6))# rendered directly (rather than via scales::demo_continuous()) because # several locales' group/currency signs aren't in the check device's font label_number_br()(c(-1e6, 0, 1e6)) label_percent_br(accuracy = .01)(c(-1, 0, 1)) label_currency_br(accuracy = .1)(c(-1e6, 0, 1e6))
The label_xxx_ca family of functions makes it easy to format numbers in decimal format, as percentages or as currencies.
label_number_ca( accuracy = 1, scale = 1, prefix = "", suffix = "", big.mark = NULL, decimal.mark = NULL, trim = TRUE, ... ) label_percent_ca( accuracy = 1, scale = 100, prefix = "", suffix = NULL, big.mark = NULL, decimal.mark = NULL, trim = TRUE, ... ) label_currency_ca( accuracy = 1, scale = 1, currency = "CAD", prefix = NULL, suffix = NULL, big.mark = NULL, decimal.mark = NULL, trim = TRUE, ... )label_number_ca( accuracy = 1, scale = 1, prefix = "", suffix = "", big.mark = NULL, decimal.mark = NULL, trim = TRUE, ... ) label_percent_ca( accuracy = 1, scale = 100, prefix = "", suffix = NULL, big.mark = NULL, decimal.mark = NULL, trim = TRUE, ... ) label_currency_ca( accuracy = 1, scale = 1, currency = "CAD", prefix = NULL, suffix = NULL, big.mark = NULL, decimal.mark = NULL, trim = TRUE, ... )
accuracy |
A number to round to. Use (e.g.) Applied to rescaled data. |
scale |
A scaling factor: |
prefix |
Additional text to display before the number. The suffix is
applied to absolute value before |
suffix |
Additional text to display after the number. |
big.mark |
Character used between every 3 digits to separate thousands.
The default ( |
decimal.mark |
The character to be used to indicate the numeric
decimal point. The default ( |
trim |
Logical, if |
... |
Other arguments passed on to |
currency |
currency symbol |
label_number_ca formats numbers in decimal format.
label_percent_ca formats numbers as percentages.
label_currency_ca formats numbers as currencies.
A labelling function that takes a numeric vector and returns a character vector.
# rendered directly (rather than via scales::demo_continuous()) because # several locales' group/currency signs aren't in the check device's font label_number_ca()(c(-1e6, 0, 1e6)) label_percent_ca(accuracy = .01)(c(-1, 0, 1)) label_currency_ca(accuracy = .1)(c(-1e6, 0, 1e6))# rendered directly (rather than via scales::demo_continuous()) because # several locales' group/currency signs aren't in the check device's font label_number_ca()(c(-1e6, 0, 1e6)) label_percent_ca(accuracy = .01)(c(-1, 0, 1)) label_currency_ca(accuracy = .1)(c(-1e6, 0, 1e6))
The label_xxx_xxx family of functions makes it easy to format numbers in decimal format, as percentages or as currencies.
label_number_ch( accuracy = 1, scale = 1, prefix = "", suffix = "", big.mark = NULL, decimal.mark = NULL, trim = TRUE, ... ) label_percent_ch( accuracy = 1, scale = 100, prefix = NULL, suffix = NULL, big.mark = NULL, decimal.mark = NULL, trim = TRUE, ... ) label_currency_ch( accuracy = 1, scale = 1, currency = "CHF", prefix = NULL, suffix = NULL, big.mark = NULL, decimal.mark = NULL, trim = TRUE, ... )label_number_ch( accuracy = 1, scale = 1, prefix = "", suffix = "", big.mark = NULL, decimal.mark = NULL, trim = TRUE, ... ) label_percent_ch( accuracy = 1, scale = 100, prefix = NULL, suffix = NULL, big.mark = NULL, decimal.mark = NULL, trim = TRUE, ... ) label_currency_ch( accuracy = 1, scale = 1, currency = "CHF", prefix = NULL, suffix = NULL, big.mark = NULL, decimal.mark = NULL, trim = TRUE, ... )
accuracy |
A number to round to. Use (e.g.) Applied to rescaled data. |
scale |
A scaling factor: |
prefix |
Additional text to display before the number. The suffix is
applied to absolute value before |
suffix |
Additional text to display after the number. |
big.mark |
Character used between every 3 digits to separate thousands.
The default ( |
decimal.mark |
The character to be used to indicate the numeric
decimal point. The default ( |
trim |
Logical, if |
... |
Other arguments passed on to |
currency |
currency symbol |
label_number_ch formats numbers in decimal format.
label_percent_ch formats numbers as percentages.
label_currency_ch formats numbers as currencies.
A labelling function that takes a numeric vector and returns a character vector.
require(scales) demo_continuous(c(-1e6, 1e6), labels = label_number_ch() ) demo_continuous(c(-1, 1), labels = label_percent_ch(accuracy = .01) ) demo_continuous(c(-1, 1), labels = label_currency_ch(accuracy = .1) )require(scales) demo_continuous(c(-1e6, 1e6), labels = label_number_ch() ) demo_continuous(c(-1, 1), labels = label_percent_ch(accuracy = .01) ) demo_continuous(c(-1, 1), labels = label_currency_ch(accuracy = .1) )
The label_xxx_cn family of functions makes it easy to format numbers in decimal format, as percentages or as currencies.
label_number_cn( accuracy = 1, scale = 1, prefix = "", suffix = "", big.mark = NULL, decimal.mark = NULL, trim = TRUE, ... ) label_percent_cn( accuracy = 1, scale = 100, prefix = "", suffix = NULL, big.mark = NULL, decimal.mark = NULL, trim = TRUE, ... ) label_currency_cn( accuracy = 1, scale = 1, currency = "CNY", prefix = NULL, suffix = NULL, big.mark = NULL, decimal.mark = NULL, trim = TRUE, ... )label_number_cn( accuracy = 1, scale = 1, prefix = "", suffix = "", big.mark = NULL, decimal.mark = NULL, trim = TRUE, ... ) label_percent_cn( accuracy = 1, scale = 100, prefix = "", suffix = NULL, big.mark = NULL, decimal.mark = NULL, trim = TRUE, ... ) label_currency_cn( accuracy = 1, scale = 1, currency = "CNY", prefix = NULL, suffix = NULL, big.mark = NULL, decimal.mark = NULL, trim = TRUE, ... )
accuracy |
A number to round to. Use (e.g.) Applied to rescaled data. |
scale |
A scaling factor: |
prefix |
Additional text to display before the number. The suffix is
applied to absolute value before |
suffix |
Additional text to display after the number. |
big.mark |
Character used between every 3 digits to separate thousands.
The default ( |
decimal.mark |
The character to be used to indicate the numeric
decimal point. The default ( |
trim |
Logical, if |
... |
Other arguments passed on to |
currency |
currency symbol |
label_number_cn formats numbers in decimal format.
label_percent_cn formats numbers as percentages.
label_currency_cn formats numbers as currencies.
A labelling function that takes a numeric vector and returns a character vector.
# rendered directly (rather than via scales::demo_continuous()) because # several locales' group/currency signs aren't in the check device's font label_number_cn()(c(-1e6, 0, 1e6)) label_percent_cn(accuracy = .01)(c(-1, 0, 1)) label_currency_cn(accuracy = .1)(c(-1e6, 0, 1e6))# rendered directly (rather than via scales::demo_continuous()) because # several locales' group/currency signs aren't in the check device's font label_number_cn()(c(-1e6, 0, 1e6)) label_percent_cn(accuracy = .01)(c(-1, 0, 1)) label_currency_cn(accuracy = .1)(c(-1e6, 0, 1e6))
The label_xxx_xxx family of functions makes it easy to format numbers in decimal format, as percentages or as currencies.
label_number_de( accuracy = 1, scale = 1, prefix = "", suffix = "", big.mark = NULL, decimal.mark = NULL, trim = TRUE, ... ) label_percent_de( accuracy = 1, scale = 100, prefix = NULL, suffix = NULL, big.mark = NULL, decimal.mark = NULL, trim = TRUE, ... ) label_currency_de( accuracy = 1, scale = 1, currency = "EUR", prefix = NULL, suffix = NULL, big.mark = NULL, decimal.mark = NULL, trim = TRUE, ... )label_number_de( accuracy = 1, scale = 1, prefix = "", suffix = "", big.mark = NULL, decimal.mark = NULL, trim = TRUE, ... ) label_percent_de( accuracy = 1, scale = 100, prefix = NULL, suffix = NULL, big.mark = NULL, decimal.mark = NULL, trim = TRUE, ... ) label_currency_de( accuracy = 1, scale = 1, currency = "EUR", prefix = NULL, suffix = NULL, big.mark = NULL, decimal.mark = NULL, trim = TRUE, ... )
accuracy |
A number to round to. Use (e.g.) Applied to rescaled data. |
scale |
A scaling factor: |
prefix |
Additional text to display before the number. The suffix is
applied to absolute value before |
suffix |
Additional text to display after the number. |
big.mark |
Character used between every 3 digits to separate thousands.
The default ( |
decimal.mark |
The character to be used to indicate the numeric
decimal point. The default ( |
trim |
Logical, if |
... |
Other arguments passed on to |
currency |
currency symbol |
label_number_de formats numbers in decimal format.
label_percent_de formats numbers as percentages.
label_currency_de formats numbers as currencies.
A labelling function that takes a numeric vector and returns a character vector.
# rendered directly (rather than via scales::demo_continuous()) because # several locales' group/currency signs aren't in the check device's font label_number_de()(c(-1e6, 0, 1e6)) label_percent_de(accuracy = .01)(c(-1, 0, 1)) label_currency_de(accuracy = .1)(c(-1e6, 0, 1e6))# rendered directly (rather than via scales::demo_continuous()) because # several locales' group/currency signs aren't in the check device's font label_number_de()(c(-1e6, 0, 1e6)) label_percent_de(accuracy = .01)(c(-1, 0, 1)) label_currency_de(accuracy = .1)(c(-1e6, 0, 1e6))
The label_xxx_dk family of functions makes it easy to format numbers in decimal format, as percentages or as currencies.
label_number_dk( accuracy = 1, scale = 1, prefix = "", suffix = "", big.mark = NULL, decimal.mark = NULL, trim = TRUE, ... ) label_percent_dk( accuracy = 1, scale = 100, prefix = "", suffix = NULL, big.mark = NULL, decimal.mark = NULL, trim = TRUE, ... ) label_currency_dk( accuracy = 1, scale = 1, currency = "DKK", prefix = NULL, suffix = NULL, big.mark = NULL, decimal.mark = NULL, trim = TRUE, ... )label_number_dk( accuracy = 1, scale = 1, prefix = "", suffix = "", big.mark = NULL, decimal.mark = NULL, trim = TRUE, ... ) label_percent_dk( accuracy = 1, scale = 100, prefix = "", suffix = NULL, big.mark = NULL, decimal.mark = NULL, trim = TRUE, ... ) label_currency_dk( accuracy = 1, scale = 1, currency = "DKK", prefix = NULL, suffix = NULL, big.mark = NULL, decimal.mark = NULL, trim = TRUE, ... )
accuracy |
A number to round to. Use (e.g.) Applied to rescaled data. |
scale |
A scaling factor: |
prefix |
Additional text to display before the number. The suffix is
applied to absolute value before |
suffix |
Additional text to display after the number. |
big.mark |
Character used between every 3 digits to separate thousands.
The default ( |
decimal.mark |
The character to be used to indicate the numeric
decimal point. The default ( |
trim |
Logical, if |
... |
Other arguments passed on to |
currency |
currency symbol |
label_number_dk formats numbers in decimal format.
label_percent_dk formats numbers as percentages.
label_currency_dk formats numbers as currencies.
A labelling function that takes a numeric vector and returns a character vector.
# rendered directly (rather than via scales::demo_continuous()) because # several locales' group/currency signs aren't in the check device's font label_number_dk()(c(-1e6, 0, 1e6)) label_percent_dk(accuracy = .01)(c(-1, 0, 1)) label_currency_dk(accuracy = .1)(c(-1e6, 0, 1e6))# rendered directly (rather than via scales::demo_continuous()) because # several locales' group/currency signs aren't in the check device's font label_number_dk()(c(-1e6, 0, 1e6)) label_percent_dk(accuracy = .01)(c(-1, 0, 1)) label_currency_dk(accuracy = .1)(c(-1e6, 0, 1e6))
The label_xxx_es family of functions makes it easy to format numbers in decimal format, as percentages or as currencies.
label_number_es( accuracy = 1, scale = 1, prefix = "", suffix = "", big.mark = NULL, decimal.mark = NULL, trim = TRUE, ... ) label_percent_es( accuracy = 1, scale = 100, prefix = "", suffix = NULL, big.mark = NULL, decimal.mark = NULL, trim = TRUE, ... ) label_currency_es( accuracy = 1, scale = 1, currency = "EUR", prefix = NULL, suffix = NULL, big.mark = NULL, decimal.mark = NULL, trim = TRUE, ... )label_number_es( accuracy = 1, scale = 1, prefix = "", suffix = "", big.mark = NULL, decimal.mark = NULL, trim = TRUE, ... ) label_percent_es( accuracy = 1, scale = 100, prefix = "", suffix = NULL, big.mark = NULL, decimal.mark = NULL, trim = TRUE, ... ) label_currency_es( accuracy = 1, scale = 1, currency = "EUR", prefix = NULL, suffix = NULL, big.mark = NULL, decimal.mark = NULL, trim = TRUE, ... )
accuracy |
A number to round to. Use (e.g.) Applied to rescaled data. |
scale |
A scaling factor: |
prefix |
Additional text to display before the number. The suffix is
applied to absolute value before |
suffix |
Additional text to display after the number. |
big.mark |
Character used between every 3 digits to separate thousands.
The default ( |
decimal.mark |
The character to be used to indicate the numeric
decimal point. The default ( |
trim |
Logical, if |
... |
Other arguments passed on to |
currency |
currency symbol |
label_number_es formats numbers in decimal format.
label_percent_es formats numbers as percentages.
label_currency_es formats numbers as currencies.
A labelling function that takes a numeric vector and returns a character vector.
# rendered directly (rather than via scales::demo_continuous()) because # several locales' group/currency signs aren't in the check device's font label_number_es()(c(-1e6, 0, 1e6)) label_percent_es(accuracy = .01)(c(-1, 0, 1)) label_currency_es(accuracy = .1)(c(-1e6, 0, 1e6))# rendered directly (rather than via scales::demo_continuous()) because # several locales' group/currency signs aren't in the check device's font label_number_es()(c(-1e6, 0, 1e6)) label_percent_es(accuracy = .01)(c(-1, 0, 1)) label_currency_es(accuracy = .1)(c(-1e6, 0, 1e6))
The label_xxx_fi family of functions makes it easy to format numbers in decimal format, as percentages or as currencies.
label_number_fi( accuracy = 1, scale = 1, prefix = "", suffix = "", big.mark = NULL, decimal.mark = NULL, trim = TRUE, ... ) label_percent_fi( accuracy = 1, scale = 100, prefix = "", suffix = NULL, big.mark = NULL, decimal.mark = NULL, trim = TRUE, ... ) label_currency_fi( accuracy = 1, scale = 1, currency = "EUR", prefix = NULL, suffix = NULL, big.mark = NULL, decimal.mark = NULL, trim = TRUE, ... )label_number_fi( accuracy = 1, scale = 1, prefix = "", suffix = "", big.mark = NULL, decimal.mark = NULL, trim = TRUE, ... ) label_percent_fi( accuracy = 1, scale = 100, prefix = "", suffix = NULL, big.mark = NULL, decimal.mark = NULL, trim = TRUE, ... ) label_currency_fi( accuracy = 1, scale = 1, currency = "EUR", prefix = NULL, suffix = NULL, big.mark = NULL, decimal.mark = NULL, trim = TRUE, ... )
accuracy |
A number to round to. Use (e.g.) Applied to rescaled data. |
scale |
A scaling factor: |
prefix |
Additional text to display before the number. The suffix is
applied to absolute value before |
suffix |
Additional text to display after the number. |
big.mark |
Character used between every 3 digits to separate thousands.
The default ( |
decimal.mark |
The character to be used to indicate the numeric
decimal point. The default ( |
trim |
Logical, if |
... |
Other arguments passed on to |
currency |
currency symbol |
label_number_fi formats numbers in decimal format.
label_percent_fi formats numbers as percentages.
label_currency_fi formats numbers as currencies.
A labelling function that takes a numeric vector and returns a character vector.
# rendered directly (rather than via scales::demo_continuous()) because # several locales' group/currency signs aren't in the check device's font label_number_fi()(c(-1e6, 0, 1e6)) label_percent_fi(accuracy = .01)(c(-1, 0, 1)) label_currency_fi(accuracy = .1)(c(-1e6, 0, 1e6))# rendered directly (rather than via scales::demo_continuous()) because # several locales' group/currency signs aren't in the check device's font label_number_fi()(c(-1e6, 0, 1e6)) label_percent_fi(accuracy = .01)(c(-1, 0, 1)) label_currency_fi(accuracy = .1)(c(-1e6, 0, 1e6))
The label_xxx_fr family of functions makes it easy to format numbers in decimal format, as percentages or as currencies.
label_number_fr( accuracy = 1, scale = 1, prefix = "", suffix = "", big.mark = NULL, decimal.mark = NULL, trim = TRUE, ... ) label_percent_fr( accuracy = 1, scale = 100, prefix = "", suffix = NULL, big.mark = NULL, decimal.mark = NULL, trim = TRUE, ... ) label_currency_fr( accuracy = 1, scale = 1, currency = "EUR", prefix = NULL, suffix = NULL, big.mark = NULL, decimal.mark = NULL, trim = TRUE, ... )label_number_fr( accuracy = 1, scale = 1, prefix = "", suffix = "", big.mark = NULL, decimal.mark = NULL, trim = TRUE, ... ) label_percent_fr( accuracy = 1, scale = 100, prefix = "", suffix = NULL, big.mark = NULL, decimal.mark = NULL, trim = TRUE, ... ) label_currency_fr( accuracy = 1, scale = 1, currency = "EUR", prefix = NULL, suffix = NULL, big.mark = NULL, decimal.mark = NULL, trim = TRUE, ... )
accuracy |
A number to round to. Use (e.g.) Applied to rescaled data. |
scale |
A scaling factor: |
prefix |
Additional text to display before the number. The suffix is
applied to absolute value before |
suffix |
Additional text to display after the number. |
big.mark |
Character used between every 3 digits to separate thousands.
The default ( |
decimal.mark |
The character to be used to indicate the numeric
decimal point. The default ( |
trim |
Logical, if |
... |
Other arguments passed on to |
currency |
currency symbol |
label_number_fr formats numbers in decimal format.
label_percent_fr formats numbers as percentages.
label_currency_fr formats numbers as currencies.
A labelling function that takes a numeric vector and returns a character vector.
# rendered directly (rather than via scales::demo_continuous()) because # several locales' group/currency signs aren't in the check device's font label_number_fr()(c(-1e6, 0, 1e6)) label_percent_fr(accuracy = .01)(c(-1, 0, 1)) label_currency_fr(accuracy = .1)(c(-1e6, 0, 1e6))# rendered directly (rather than via scales::demo_continuous()) because # several locales' group/currency signs aren't in the check device's font label_number_fr()(c(-1e6, 0, 1e6)) label_percent_fr(accuracy = .01)(c(-1, 0, 1)) label_currency_fr(accuracy = .1)(c(-1e6, 0, 1e6))
The label_xxx_gb family of functions makes it easy to format numbers in decimal format, as percentages or as currencies.
label_number_gb( accuracy = 1, scale = 1, prefix = "", suffix = "", big.mark = NULL, decimal.mark = NULL, trim = TRUE, ... ) label_percent_gb( accuracy = 1, scale = 100, prefix = "", suffix = NULL, big.mark = NULL, decimal.mark = NULL, trim = TRUE, ... ) label_currency_gb( accuracy = 1, scale = 1, currency = "GBP", prefix = NULL, suffix = NULL, big.mark = NULL, decimal.mark = NULL, trim = TRUE, ... )label_number_gb( accuracy = 1, scale = 1, prefix = "", suffix = "", big.mark = NULL, decimal.mark = NULL, trim = TRUE, ... ) label_percent_gb( accuracy = 1, scale = 100, prefix = "", suffix = NULL, big.mark = NULL, decimal.mark = NULL, trim = TRUE, ... ) label_currency_gb( accuracy = 1, scale = 1, currency = "GBP", prefix = NULL, suffix = NULL, big.mark = NULL, decimal.mark = NULL, trim = TRUE, ... )
accuracy |
A number to round to. Use (e.g.) Applied to rescaled data. |
scale |
A scaling factor: |
prefix |
Additional text to display before the number. The suffix is
applied to absolute value before |
suffix |
Additional text to display after the number. |
big.mark |
Character used between every 3 digits to separate thousands.
The default ( |
decimal.mark |
The character to be used to indicate the numeric
decimal point. The default ( |
trim |
Logical, if |
... |
Other arguments passed on to |
currency |
currency symbol |
label_number_gb formats numbers in decimal format.
label_percent_gb formats numbers as percentages.
label_currency_gb formats numbers as currencies.
A labelling function that takes a numeric vector and returns a character vector.
# rendered directly (rather than via scales::demo_continuous()) because # several locales' group/currency signs aren't in the check device's font label_number_gb()(c(-1e6, 0, 1e6)) label_percent_gb(accuracy = .01)(c(-1, 0, 1)) label_currency_gb(accuracy = .1)(c(-1e6, 0, 1e6))# rendered directly (rather than via scales::demo_continuous()) because # several locales' group/currency signs aren't in the check device's font label_number_gb()(c(-1e6, 0, 1e6)) label_percent_gb(accuracy = .01)(c(-1, 0, 1)) label_currency_gb(accuracy = .1)(c(-1e6, 0, 1e6))
The label_xxx_id family of functions makes it easy to format numbers in decimal format, as percentages or as currencies.
label_number_id( accuracy = 1, scale = 1, prefix = "", suffix = "", big.mark = NULL, decimal.mark = NULL, trim = TRUE, ... ) label_percent_id( accuracy = 1, scale = 100, prefix = "", suffix = NULL, big.mark = NULL, decimal.mark = NULL, trim = TRUE, ... ) label_currency_id( accuracy = 1, scale = 1, currency = "IDR", prefix = NULL, suffix = NULL, big.mark = NULL, decimal.mark = NULL, trim = TRUE, ... )label_number_id( accuracy = 1, scale = 1, prefix = "", suffix = "", big.mark = NULL, decimal.mark = NULL, trim = TRUE, ... ) label_percent_id( accuracy = 1, scale = 100, prefix = "", suffix = NULL, big.mark = NULL, decimal.mark = NULL, trim = TRUE, ... ) label_currency_id( accuracy = 1, scale = 1, currency = "IDR", prefix = NULL, suffix = NULL, big.mark = NULL, decimal.mark = NULL, trim = TRUE, ... )
accuracy |
A number to round to. Use (e.g.) Applied to rescaled data. |
scale |
A scaling factor: |
prefix |
Additional text to display before the number. The suffix is
applied to absolute value before |
suffix |
Additional text to display after the number. |
big.mark |
Character used between every 3 digits to separate thousands.
The default ( |
decimal.mark |
The character to be used to indicate the numeric
decimal point. The default ( |
trim |
Logical, if |
... |
Other arguments passed on to |
currency |
currency symbol |
label_number_id formats numbers in decimal format.
label_percent_id formats numbers as percentages.
label_currency_id formats numbers as currencies.
A labelling function that takes a numeric vector and returns a character vector.
# rendered directly (rather than via scales::demo_continuous()) because # several locales' group/currency signs aren't in the check device's font label_number_id()(c(-1e6, 0, 1e6)) label_percent_id(accuracy = .01)(c(-1, 0, 1)) label_currency_id(accuracy = .1)(c(-1e6, 0, 1e6))# rendered directly (rather than via scales::demo_continuous()) because # several locales' group/currency signs aren't in the check device's font label_number_id()(c(-1e6, 0, 1e6)) label_percent_id(accuracy = .01)(c(-1, 0, 1)) label_currency_id(accuracy = .1)(c(-1e6, 0, 1e6))
The label_xxx_ie family of functions makes it easy to format numbers in decimal format, as percentages or as currencies.
label_number_ie( accuracy = 1, scale = 1, prefix = "", suffix = "", big.mark = NULL, decimal.mark = NULL, trim = TRUE, ... ) label_percent_ie( accuracy = 1, scale = 100, prefix = "", suffix = NULL, big.mark = NULL, decimal.mark = NULL, trim = TRUE, ... ) label_currency_ie( accuracy = 1, scale = 1, currency = "EUR", prefix = NULL, suffix = NULL, big.mark = NULL, decimal.mark = NULL, trim = TRUE, ... )label_number_ie( accuracy = 1, scale = 1, prefix = "", suffix = "", big.mark = NULL, decimal.mark = NULL, trim = TRUE, ... ) label_percent_ie( accuracy = 1, scale = 100, prefix = "", suffix = NULL, big.mark = NULL, decimal.mark = NULL, trim = TRUE, ... ) label_currency_ie( accuracy = 1, scale = 1, currency = "EUR", prefix = NULL, suffix = NULL, big.mark = NULL, decimal.mark = NULL, trim = TRUE, ... )
accuracy |
A number to round to. Use (e.g.) Applied to rescaled data. |
scale |
A scaling factor: |
prefix |
Additional text to display before the number. The suffix is
applied to absolute value before |
suffix |
Additional text to display after the number. |
big.mark |
Character used between every 3 digits to separate thousands.
The default ( |
decimal.mark |
The character to be used to indicate the numeric
decimal point. The default ( |
trim |
Logical, if |
... |
Other arguments passed on to |
currency |
currency symbol |
label_number_ie formats numbers in decimal format.
label_percent_ie formats numbers as percentages.
label_currency_ie formats numbers as currencies.
A labelling function that takes a numeric vector and returns a character vector.
# rendered directly (rather than via scales::demo_continuous()) because # several locales' group/currency signs aren't in the check device's font label_number_ie()(c(-1e6, 0, 1e6)) label_percent_ie(accuracy = .01)(c(-1, 0, 1)) label_currency_ie(accuracy = .1)(c(-1e6, 0, 1e6))# rendered directly (rather than via scales::demo_continuous()) because # several locales' group/currency signs aren't in the check device's font label_number_ie()(c(-1e6, 0, 1e6)) label_percent_ie(accuracy = .01)(c(-1, 0, 1)) label_currency_ie(accuracy = .1)(c(-1e6, 0, 1e6))
The label_xxx_it family of functions makes it easy to format numbers in decimal format, as percentages or as currencies.
label_number_it( accuracy = 1, scale = 1, prefix = "", suffix = "", big.mark = NULL, decimal.mark = NULL, trim = TRUE, ... ) label_percent_it( accuracy = 1, scale = 100, prefix = "", suffix = NULL, big.mark = NULL, decimal.mark = NULL, trim = TRUE, ... ) label_currency_it( accuracy = 1, scale = 1, currency = "EUR", prefix = NULL, suffix = NULL, big.mark = NULL, decimal.mark = NULL, trim = TRUE, ... )label_number_it( accuracy = 1, scale = 1, prefix = "", suffix = "", big.mark = NULL, decimal.mark = NULL, trim = TRUE, ... ) label_percent_it( accuracy = 1, scale = 100, prefix = "", suffix = NULL, big.mark = NULL, decimal.mark = NULL, trim = TRUE, ... ) label_currency_it( accuracy = 1, scale = 1, currency = "EUR", prefix = NULL, suffix = NULL, big.mark = NULL, decimal.mark = NULL, trim = TRUE, ... )
accuracy |
A number to round to. Use (e.g.) Applied to rescaled data. |
scale |
A scaling factor: |
prefix |
Additional text to display before the number. The suffix is
applied to absolute value before |
suffix |
Additional text to display after the number. |
big.mark |
Character used between every 3 digits to separate thousands.
The default ( |
decimal.mark |
The character to be used to indicate the numeric
decimal point. The default ( |
trim |
Logical, if |
... |
Other arguments passed on to |
currency |
currency symbol |
label_number_it formats numbers in decimal format.
label_percent_it formats numbers as percentages.
label_currency_it formats numbers as currencies.
A labelling function that takes a numeric vector and returns a character vector.
# rendered directly (rather than via scales::demo_continuous()) because # several locales' group/currency signs aren't in the check device's font label_number_it()(c(-1e6, 0, 1e6)) label_percent_it(accuracy = .01)(c(-1, 0, 1)) label_currency_it(accuracy = .1)(c(-1e6, 0, 1e6))# rendered directly (rather than via scales::demo_continuous()) because # several locales' group/currency signs aren't in the check device's font label_number_it()(c(-1e6, 0, 1e6)) label_percent_it(accuracy = .01)(c(-1, 0, 1)) label_currency_it(accuracy = .1)(c(-1e6, 0, 1e6))
The label_xxx_jp family of functions makes it easy to format numbers in decimal format, as percentages or as currencies.
label_number_jp( accuracy = 1, scale = 1, prefix = "", suffix = "", big.mark = NULL, decimal.mark = NULL, trim = TRUE, ... ) label_percent_jp( accuracy = 1, scale = 100, prefix = "", suffix = NULL, big.mark = NULL, decimal.mark = NULL, trim = TRUE, ... ) label_currency_jp( accuracy = 1, scale = 1, currency = "JPY", prefix = NULL, suffix = NULL, big.mark = NULL, decimal.mark = NULL, trim = TRUE, ... )label_number_jp( accuracy = 1, scale = 1, prefix = "", suffix = "", big.mark = NULL, decimal.mark = NULL, trim = TRUE, ... ) label_percent_jp( accuracy = 1, scale = 100, prefix = "", suffix = NULL, big.mark = NULL, decimal.mark = NULL, trim = TRUE, ... ) label_currency_jp( accuracy = 1, scale = 1, currency = "JPY", prefix = NULL, suffix = NULL, big.mark = NULL, decimal.mark = NULL, trim = TRUE, ... )
accuracy |
A number to round to. Use (e.g.) Applied to rescaled data. |
scale |
A scaling factor: |
prefix |
Additional text to display before the number. The suffix is
applied to absolute value before |
suffix |
Additional text to display after the number. |
big.mark |
Character used between every 3 digits to separate thousands.
The default ( |
decimal.mark |
The character to be used to indicate the numeric
decimal point. The default ( |
trim |
Logical, if |
... |
Other arguments passed on to |
currency |
currency symbol |
label_number_jp formats numbers in decimal format.
label_percent_jp formats numbers as percentages.
label_currency_jp formats numbers as currencies.
A labelling function that takes a numeric vector and returns a character vector.
# rendered directly (rather than via scales::demo_continuous()) because # several locales' group/currency signs aren't in the check device's font label_number_jp()(c(-1e6, 0, 1e6)) label_percent_jp(accuracy = .01)(c(-1, 0, 1)) label_currency_jp(accuracy = .1)(c(-1e6, 0, 1e6))# rendered directly (rather than via scales::demo_continuous()) because # several locales' group/currency signs aren't in the check device's font label_number_jp()(c(-1e6, 0, 1e6)) label_percent_jp(accuracy = .01)(c(-1, 0, 1)) label_currency_jp(accuracy = .1)(c(-1e6, 0, 1e6))
The label_xxx_kr family of functions makes it easy to format numbers in decimal format, as percentages or as currencies.
label_number_kr( accuracy = 1, scale = 1, prefix = "", suffix = "", big.mark = NULL, decimal.mark = NULL, trim = TRUE, ... ) label_percent_kr( accuracy = 1, scale = 100, prefix = "", suffix = NULL, big.mark = NULL, decimal.mark = NULL, trim = TRUE, ... ) label_currency_kr( accuracy = 1, scale = 1, currency = "KRW", prefix = NULL, suffix = NULL, big.mark = NULL, decimal.mark = NULL, trim = TRUE, ... )label_number_kr( accuracy = 1, scale = 1, prefix = "", suffix = "", big.mark = NULL, decimal.mark = NULL, trim = TRUE, ... ) label_percent_kr( accuracy = 1, scale = 100, prefix = "", suffix = NULL, big.mark = NULL, decimal.mark = NULL, trim = TRUE, ... ) label_currency_kr( accuracy = 1, scale = 1, currency = "KRW", prefix = NULL, suffix = NULL, big.mark = NULL, decimal.mark = NULL, trim = TRUE, ... )
accuracy |
A number to round to. Use (e.g.) Applied to rescaled data. |
scale |
A scaling factor: |
prefix |
Additional text to display before the number. The suffix is
applied to absolute value before |
suffix |
Additional text to display after the number. |
big.mark |
Character used between every 3 digits to separate thousands.
The default ( |
decimal.mark |
The character to be used to indicate the numeric
decimal point. The default ( |
trim |
Logical, if |
... |
Other arguments passed on to |
currency |
currency symbol |
label_number_kr formats numbers in decimal format.
label_percent_kr formats numbers as percentages.
label_currency_kr formats numbers as currencies.
A labelling function that takes a numeric vector and returns a character vector.
# rendered directly (rather than via scales::demo_continuous()) because # several locales' group/currency signs aren't in the check device's font label_number_kr()(c(-1e6, 0, 1e6)) label_percent_kr(accuracy = .01)(c(-1, 0, 1)) label_currency_kr(accuracy = .1)(c(-1e6, 0, 1e6))# rendered directly (rather than via scales::demo_continuous()) because # several locales' group/currency signs aren't in the check device's font label_number_kr()(c(-1e6, 0, 1e6)) label_percent_kr(accuracy = .01)(c(-1, 0, 1)) label_currency_kr(accuracy = .1)(c(-1e6, 0, 1e6))
The label_xxx_locale family of functions makes it easy to format numbers in decimal format, as percentages or as currencies.
label_number_locale( accuracy = NULL, scale = 1, prefix = "", suffix = "", big.mark = NULL, decimal.mark = NULL, locale = "en-US", trim = TRUE, ... ) label_percent_locale( accuracy = NULL, scale = 100, prefix = NULL, suffix = NULL, big.mark = NULL, decimal.mark = NULL, locale = "en-US", trim = TRUE, ... ) label_currency_locale( accuracy = NULL, scale = 1, prefix = NULL, suffix = NULL, big.mark = NULL, decimal.mark = NULL, p_sep_by = NULL, n_sep_by = NULL, currency = "USD", locale = "en-US", trim = TRUE, ... )label_number_locale( accuracy = NULL, scale = 1, prefix = "", suffix = "", big.mark = NULL, decimal.mark = NULL, locale = "en-US", trim = TRUE, ... ) label_percent_locale( accuracy = NULL, scale = 100, prefix = NULL, suffix = NULL, big.mark = NULL, decimal.mark = NULL, locale = "en-US", trim = TRUE, ... ) label_currency_locale( accuracy = NULL, scale = 1, prefix = NULL, suffix = NULL, big.mark = NULL, decimal.mark = NULL, p_sep_by = NULL, n_sep_by = NULL, currency = "USD", locale = "en-US", trim = TRUE, ... )
accuracy |
A number to round to. Use (e.g.) Applied to rescaled data. |
scale |
A scaling factor: |
prefix |
Additional text to display before the number. The suffix is
applied to absolute value before |
suffix |
Additional text to display after the number. |
big.mark |
Character used between every 3 digits to separate thousands.
The default ( |
decimal.mark |
The character to be used to indicate the numeric
decimal point. The default ( |
locale |
locale string. Defaults to "en-US" |
trim |
Logical, if |
... |
Other arguments passed on to |
p_sep_by |
separator between currency symbol and positive monetary value |
n_sep_by |
separator between currency symbol and negative monetary value |
currency |
currency symbol |
label_number_locale formats numbers in decimal format.
label_percent_locale formats numbers as percentages.
label_currency_locale formats numbers as currencies.
A labelling function that takes a numeric vector and returns a character vector.
# rendered directly (rather than via scales::demo_continuous()) because # several locales' group/currency signs aren't in the check device's font label_number_locale(locale = "fr-FR")(c(-1e6, 0, 1e6)) label_percent_locale(locale = "it-IT", accuracy = .01)(c(-1, 0, 1)) label_currency_locale( locale = "ja-JP", accuracy = .1, currency = "JPY" )(c(-1e4, 0, 1e4))# rendered directly (rather than via scales::demo_continuous()) because # several locales' group/currency signs aren't in the check device's font label_number_locale(locale = "fr-FR")(c(-1e6, 0, 1e6)) label_percent_locale(locale = "it-IT", accuracy = .01)(c(-1, 0, 1)) label_currency_locale( locale = "ja-JP", accuracy = .1, currency = "JPY" )(c(-1e4, 0, 1e4))
The label_xxx_mx family of functions makes it easy to format numbers in decimal format, as percentages or as currencies.
label_number_mx( accuracy = 1, scale = 1, prefix = "", suffix = "", big.mark = NULL, decimal.mark = NULL, trim = TRUE, ... ) label_percent_mx( accuracy = 1, scale = 100, prefix = "", suffix = NULL, big.mark = NULL, decimal.mark = NULL, trim = TRUE, ... ) label_currency_mx( accuracy = 1, scale = 1, currency = "MXN", prefix = NULL, suffix = NULL, big.mark = NULL, decimal.mark = NULL, trim = TRUE, ... )label_number_mx( accuracy = 1, scale = 1, prefix = "", suffix = "", big.mark = NULL, decimal.mark = NULL, trim = TRUE, ... ) label_percent_mx( accuracy = 1, scale = 100, prefix = "", suffix = NULL, big.mark = NULL, decimal.mark = NULL, trim = TRUE, ... ) label_currency_mx( accuracy = 1, scale = 1, currency = "MXN", prefix = NULL, suffix = NULL, big.mark = NULL, decimal.mark = NULL, trim = TRUE, ... )
accuracy |
A number to round to. Use (e.g.) Applied to rescaled data. |
scale |
A scaling factor: |
prefix |
Additional text to display before the number. The suffix is
applied to absolute value before |
suffix |
Additional text to display after the number. |
big.mark |
Character used between every 3 digits to separate thousands.
The default ( |
decimal.mark |
The character to be used to indicate the numeric
decimal point. The default ( |
trim |
Logical, if |
... |
Other arguments passed on to |
currency |
currency symbol |
label_number_mx formats numbers in decimal format.
label_percent_mx formats numbers as percentages.
label_currency_mx formats numbers as currencies.
A labelling function that takes a numeric vector and returns a character vector.
# rendered directly (rather than via scales::demo_continuous()) because # several locales' group/currency signs aren't in the check device's font label_number_mx()(c(-1e6, 0, 1e6)) label_percent_mx(accuracy = .01)(c(-1, 0, 1)) label_currency_mx(accuracy = .1)(c(-1e6, 0, 1e6))# rendered directly (rather than via scales::demo_continuous()) because # several locales' group/currency signs aren't in the check device's font label_number_mx()(c(-1e6, 0, 1e6)) label_percent_mx(accuracy = .01)(c(-1, 0, 1)) label_currency_mx(accuracy = .1)(c(-1e6, 0, 1e6))
The label_xxx_no family of functions makes it easy to format numbers in decimal format, as percentages or as currencies.
label_number_no( accuracy = 1, scale = 1, prefix = "", suffix = "", big.mark = NULL, decimal.mark = NULL, trim = TRUE, ... ) label_percent_no( accuracy = 1, scale = 100, prefix = "", suffix = NULL, big.mark = NULL, decimal.mark = NULL, trim = TRUE, ... ) label_currency_no( accuracy = 1, scale = 1, currency = "NOK", prefix = NULL, suffix = NULL, big.mark = NULL, decimal.mark = NULL, trim = TRUE, ... )label_number_no( accuracy = 1, scale = 1, prefix = "", suffix = "", big.mark = NULL, decimal.mark = NULL, trim = TRUE, ... ) label_percent_no( accuracy = 1, scale = 100, prefix = "", suffix = NULL, big.mark = NULL, decimal.mark = NULL, trim = TRUE, ... ) label_currency_no( accuracy = 1, scale = 1, currency = "NOK", prefix = NULL, suffix = NULL, big.mark = NULL, decimal.mark = NULL, trim = TRUE, ... )
accuracy |
A number to round to. Use (e.g.) Applied to rescaled data. |
scale |
A scaling factor: |
prefix |
Additional text to display before the number. The suffix is
applied to absolute value before |
suffix |
Additional text to display after the number. |
big.mark |
Character used between every 3 digits to separate thousands.
The default ( |
decimal.mark |
The character to be used to indicate the numeric
decimal point. The default ( |
trim |
Logical, if |
... |
Other arguments passed on to |
currency |
currency symbol |
label_number_no formats numbers in decimal format.
label_percent_no formats numbers as percentages.
label_currency_no formats numbers as currencies.
A labelling function that takes a numeric vector and returns a character vector.
# rendered directly (rather than via scales::demo_continuous()) because # several locales' group/currency signs aren't in the check device's font label_number_no()(c(-1e6, 0, 1e6)) label_percent_no(accuracy = .01)(c(-1, 0, 1)) label_currency_no(accuracy = .1)(c(-1e6, 0, 1e6))# rendered directly (rather than via scales::demo_continuous()) because # several locales' group/currency signs aren't in the check device's font label_number_no()(c(-1e6, 0, 1e6)) label_percent_no(accuracy = .01)(c(-1, 0, 1)) label_currency_no(accuracy = .1)(c(-1e6, 0, 1e6))
The label_xxx_pt family of functions makes it easy to format numbers in decimal format, as percentages or as currencies.
label_number_pt( accuracy = 1, scale = 1, prefix = "", suffix = "", big.mark = NULL, decimal.mark = NULL, trim = TRUE, ... ) label_percent_pt( accuracy = 1, scale = 100, prefix = "", suffix = NULL, big.mark = NULL, decimal.mark = NULL, trim = TRUE, ... ) label_currency_pt( accuracy = 1, scale = 1, currency = "EUR", prefix = NULL, suffix = NULL, big.mark = NULL, decimal.mark = NULL, trim = TRUE, ... )label_number_pt( accuracy = 1, scale = 1, prefix = "", suffix = "", big.mark = NULL, decimal.mark = NULL, trim = TRUE, ... ) label_percent_pt( accuracy = 1, scale = 100, prefix = "", suffix = NULL, big.mark = NULL, decimal.mark = NULL, trim = TRUE, ... ) label_currency_pt( accuracy = 1, scale = 1, currency = "EUR", prefix = NULL, suffix = NULL, big.mark = NULL, decimal.mark = NULL, trim = TRUE, ... )
accuracy |
A number to round to. Use (e.g.) Applied to rescaled data. |
scale |
A scaling factor: |
prefix |
Additional text to display before the number. The suffix is
applied to absolute value before |
suffix |
Additional text to display after the number. |
big.mark |
Character used between every 3 digits to separate thousands.
The default ( |
decimal.mark |
The character to be used to indicate the numeric
decimal point. The default ( |
trim |
Logical, if |
... |
Other arguments passed on to |
currency |
currency symbol |
label_number_pt formats numbers in decimal format.
label_percent_pt formats numbers as percentages.
label_currency_pt formats numbers as currencies.
A labelling function that takes a numeric vector and returns a character vector.
# rendered directly (rather than via scales::demo_continuous()) because # several locales' group/currency signs aren't in the check device's font label_number_pt()(c(-1e6, 0, 1e6)) label_percent_pt(accuracy = .01)(c(-1, 0, 1)) label_currency_pt(accuracy = .1)(c(-1e6, 0, 1e6))# rendered directly (rather than via scales::demo_continuous()) because # several locales' group/currency signs aren't in the check device's font label_number_pt()(c(-1e6, 0, 1e6)) label_percent_pt(accuracy = .01)(c(-1, 0, 1)) label_currency_pt(accuracy = .1)(c(-1e6, 0, 1e6))
The label_xxx_ru family of functions makes it easy to format numbers in decimal format, as percentages or as currencies.
label_number_ru( accuracy = 1, scale = 1, prefix = "", suffix = "", big.mark = NULL, decimal.mark = NULL, trim = TRUE, ... ) label_percent_ru( accuracy = 1, scale = 100, prefix = NULL, suffix = NULL, big.mark = NULL, decimal.mark = NULL, trim = TRUE, ... ) label_currency_ru( accuracy = 1, scale = 1, currency = "RUB", prefix = NULL, suffix = NULL, big.mark = NULL, decimal.mark = NULL, trim = TRUE, ... )label_number_ru( accuracy = 1, scale = 1, prefix = "", suffix = "", big.mark = NULL, decimal.mark = NULL, trim = TRUE, ... ) label_percent_ru( accuracy = 1, scale = 100, prefix = NULL, suffix = NULL, big.mark = NULL, decimal.mark = NULL, trim = TRUE, ... ) label_currency_ru( accuracy = 1, scale = 1, currency = "RUB", prefix = NULL, suffix = NULL, big.mark = NULL, decimal.mark = NULL, trim = TRUE, ... )
accuracy |
A number to round to. Use (e.g.) Applied to rescaled data. |
scale |
A scaling factor: |
prefix |
Additional text to display before the number. The suffix is
applied to absolute value before |
suffix |
Additional text to display after the number. |
big.mark |
Character used between every 3 digits to separate thousands.
The default ( |
decimal.mark |
The character to be used to indicate the numeric
decimal point. The default ( |
trim |
Logical, if |
... |
Other arguments passed on to |
currency |
currency symbol |
label_number_ru formats numbers in decimal format.
label_percent_ru formats numbers as percentages.
label_currency_ru formats numbers as currencies.
A labelling function that takes a numeric vector and returns a character vector.
# rendered directly (rather than via scales::demo_continuous()) because # several locales' group/currency signs aren't in the check device's font label_number_ru()(c(-1e6, 0, 1e6)) label_percent_ru(accuracy = .01)(c(-1, 0, 1)) label_currency_ru(accuracy = .1)(c(-1e6, 0, 1e6))# rendered directly (rather than via scales::demo_continuous()) because # several locales' group/currency signs aren't in the check device's font label_number_ru()(c(-1e6, 0, 1e6)) label_percent_ru(accuracy = .01)(c(-1, 0, 1)) label_currency_ru(accuracy = .1)(c(-1e6, 0, 1e6))
The label_xxx_sa family of functions makes it easy to format numbers in decimal format, as percentages or as currencies.
label_number_sa( accuracy = 1, scale = 1, prefix = "", suffix = "", big.mark = NULL, decimal.mark = NULL, trim = TRUE, ... ) label_percent_sa( accuracy = 1, scale = 100, prefix = NULL, suffix = NULL, big.mark = NULL, decimal.mark = NULL, trim = TRUE, ... ) label_currency_sa( accuracy = 1, scale = 1, currency = "SAR", prefix = NULL, suffix = NULL, big.mark = NULL, decimal.mark = NULL, trim = TRUE, ... )label_number_sa( accuracy = 1, scale = 1, prefix = "", suffix = "", big.mark = NULL, decimal.mark = NULL, trim = TRUE, ... ) label_percent_sa( accuracy = 1, scale = 100, prefix = NULL, suffix = NULL, big.mark = NULL, decimal.mark = NULL, trim = TRUE, ... ) label_currency_sa( accuracy = 1, scale = 1, currency = "SAR", prefix = NULL, suffix = NULL, big.mark = NULL, decimal.mark = NULL, trim = TRUE, ... )
accuracy |
A number to round to. Use (e.g.) Applied to rescaled data. |
scale |
A scaling factor: |
prefix |
Additional text to display before the number. The suffix is
applied to absolute value before |
suffix |
Additional text to display after the number. |
big.mark |
Character used between every 3 digits to separate thousands.
The default ( |
decimal.mark |
The character to be used to indicate the numeric
decimal point. The default ( |
trim |
Logical, if |
... |
Other arguments passed on to |
currency |
currency symbol |
label_number_sa formats numbers in decimal format.
label_percent_sa formats numbers as percentages.
label_currency_sa formats numbers as currencies.
A labelling function that takes a numeric vector and returns a character vector.
# rendered directly (rather than via scales::demo_continuous()) because # several locales' group/currency signs aren't in the check device's font label_number_sa()(c(-1e6, 0, 1e6)) label_percent_sa(accuracy = .01)(c(-1, 0, 1)) label_currency_sa(accuracy = .1)(c(-1e6, 0, 1e6))# rendered directly (rather than via scales::demo_continuous()) because # several locales' group/currency signs aren't in the check device's font label_number_sa()(c(-1e6, 0, 1e6)) label_percent_sa(accuracy = .01)(c(-1, 0, 1)) label_currency_sa(accuracy = .1)(c(-1e6, 0, 1e6))
The label_xxx_se family of functions makes it easy to format numbers in decimal format, as percentages or as currencies.
label_number_se( accuracy = 1, scale = 1, prefix = "", suffix = "", big.mark = NULL, decimal.mark = NULL, trim = TRUE, ... ) label_percent_se( accuracy = 1, scale = 100, prefix = "", suffix = NULL, big.mark = NULL, decimal.mark = NULL, trim = TRUE, ... ) label_currency_se( accuracy = 1, scale = 1, currency = "SEK", prefix = NULL, suffix = NULL, big.mark = NULL, decimal.mark = NULL, trim = TRUE, ... )label_number_se( accuracy = 1, scale = 1, prefix = "", suffix = "", big.mark = NULL, decimal.mark = NULL, trim = TRUE, ... ) label_percent_se( accuracy = 1, scale = 100, prefix = "", suffix = NULL, big.mark = NULL, decimal.mark = NULL, trim = TRUE, ... ) label_currency_se( accuracy = 1, scale = 1, currency = "SEK", prefix = NULL, suffix = NULL, big.mark = NULL, decimal.mark = NULL, trim = TRUE, ... )
accuracy |
A number to round to. Use (e.g.) Applied to rescaled data. |
scale |
A scaling factor: |
prefix |
Additional text to display before the number. The suffix is
applied to absolute value before |
suffix |
Additional text to display after the number. |
big.mark |
Character used between every 3 digits to separate thousands.
The default ( |
decimal.mark |
The character to be used to indicate the numeric
decimal point. The default ( |
trim |
Logical, if |
... |
Other arguments passed on to |
currency |
currency symbol |
label_number_se formats numbers in decimal format.
label_percent_se formats numbers as percentages.
label_currency_se formats numbers as currencies.
A labelling function that takes a numeric vector and returns a character vector.
# rendered directly (rather than via scales::demo_continuous()) because # several locales' group/currency signs aren't in the check device's font label_number_se()(c(-1e6, 0, 1e6)) label_percent_se(accuracy = .01)(c(-1, 0, 1)) label_currency_se(accuracy = .1)(c(-1e6, 0, 1e6))# rendered directly (rather than via scales::demo_continuous()) because # several locales' group/currency signs aren't in the check device's font label_number_se()(c(-1e6, 0, 1e6)) label_percent_se(accuracy = .01)(c(-1, 0, 1)) label_currency_se(accuracy = .1)(c(-1e6, 0, 1e6))
The label_xxx_tr family of functions makes it easy to format numbers in decimal format, as percentages or as currencies.
label_number_tr( accuracy = 1, scale = 1, prefix = "", suffix = "", big.mark = NULL, decimal.mark = NULL, trim = TRUE, ... ) label_percent_tr( accuracy = 1, scale = 100, prefix = NULL, suffix = NULL, big.mark = NULL, decimal.mark = NULL, trim = TRUE, ... ) label_currency_tr( accuracy = 1, scale = 1, currency = "TRY", prefix = NULL, suffix = NULL, big.mark = NULL, decimal.mark = NULL, trim = TRUE, ... )label_number_tr( accuracy = 1, scale = 1, prefix = "", suffix = "", big.mark = NULL, decimal.mark = NULL, trim = TRUE, ... ) label_percent_tr( accuracy = 1, scale = 100, prefix = NULL, suffix = NULL, big.mark = NULL, decimal.mark = NULL, trim = TRUE, ... ) label_currency_tr( accuracy = 1, scale = 1, currency = "TRY", prefix = NULL, suffix = NULL, big.mark = NULL, decimal.mark = NULL, trim = TRUE, ... )
accuracy |
A number to round to. Use (e.g.) Applied to rescaled data. |
scale |
A scaling factor: |
prefix |
Additional text to display before the number. The suffix is
applied to absolute value before |
suffix |
Additional text to display after the number. |
big.mark |
Character used between every 3 digits to separate thousands.
The default ( |
decimal.mark |
The character to be used to indicate the numeric
decimal point. The default ( |
trim |
Logical, if |
... |
Other arguments passed on to |
currency |
currency symbol |
label_number_tr formats numbers in decimal format.
label_percent_tr formats numbers as percentages.
label_currency_tr formats numbers as currencies.
A labelling function that takes a numeric vector and returns a character vector.
# rendered directly (rather than via scales::demo_continuous()) because # several locales' group/currency signs aren't in the check device's font label_number_tr()(c(-1e6, 0, 1e6)) label_percent_tr(accuracy = .01)(c(-1, 0, 1)) label_currency_tr(accuracy = .1)(c(-1e6, 0, 1e6))# rendered directly (rather than via scales::demo_continuous()) because # several locales' group/currency signs aren't in the check device's font label_number_tr()(c(-1e6, 0, 1e6)) label_percent_tr(accuracy = .01)(c(-1, 0, 1)) label_currency_tr(accuracy = .1)(c(-1e6, 0, 1e6))
The label_xxx_xxx family of functions makes it easy to format numbers in decimal format, as percentages or as currencies.
label_number_us( accuracy = 1, scale = 1, prefix = "", suffix = "", big.mark = NULL, decimal.mark = NULL, trim = TRUE, ... ) label_percent_us( accuracy = 1, scale = 100, prefix = NULL, suffix = NULL, big.mark = NULL, decimal.mark = NULL, trim = TRUE, ... ) label_currency_us( accuracy = 1, scale = 1, currency = "USD", prefix = NULL, suffix = NULL, big.mark = NULL, decimal.mark = NULL, trim = TRUE, ... )label_number_us( accuracy = 1, scale = 1, prefix = "", suffix = "", big.mark = NULL, decimal.mark = NULL, trim = TRUE, ... ) label_percent_us( accuracy = 1, scale = 100, prefix = NULL, suffix = NULL, big.mark = NULL, decimal.mark = NULL, trim = TRUE, ... ) label_currency_us( accuracy = 1, scale = 1, currency = "USD", prefix = NULL, suffix = NULL, big.mark = NULL, decimal.mark = NULL, trim = TRUE, ... )
accuracy |
A number to round to. Use (e.g.) Applied to rescaled data. |
scale |
A scaling factor: |
prefix |
Additional text to display before the number. The suffix is
applied to absolute value before |
suffix |
Additional text to display after the number. |
big.mark |
Character used between every 3 digits to separate thousands.
The default ( |
decimal.mark |
The character to be used to indicate the numeric
decimal point. The default ( |
trim |
Logical, if |
... |
Other arguments passed on to |
currency |
currency symbol |
label_number_us formats numbers in decimal format.
label_percent_us formats numbers as percentages.
label_currency_us formats numbers as currencies.
A labelling function that takes a numeric vector and returns a character vector.
require(scales) demo_continuous(c(-1e6, 1e6), labels = label_number_us() ) demo_continuous(c(-1, 1), labels = label_percent_us(accuracy = .1) ) demo_continuous(c(-1, 1), labels = label_currency_us(accuracy = .1) )require(scales) demo_continuous(c(-1e6, 1e6), labels = label_number_us() ) demo_continuous(c(-1, 1), labels = label_percent_us(accuracy = .1) ) demo_continuous(c(-1, 1), labels = label_currency_us(accuracy = .1) )
The label_xxx_za family of functions makes it easy to format numbers in decimal format, as percentages or as currencies.
label_number_za( accuracy = 1, scale = 1, prefix = "", suffix = "", big.mark = NULL, decimal.mark = NULL, trim = TRUE, ... ) label_percent_za( accuracy = 1, scale = 100, prefix = NULL, suffix = NULL, big.mark = NULL, decimal.mark = NULL, trim = TRUE, ... ) label_currency_za( accuracy = 1, scale = 1, currency = "ZAR", prefix = NULL, suffix = NULL, big.mark = NULL, decimal.mark = NULL, trim = TRUE, ... )label_number_za( accuracy = 1, scale = 1, prefix = "", suffix = "", big.mark = NULL, decimal.mark = NULL, trim = TRUE, ... ) label_percent_za( accuracy = 1, scale = 100, prefix = NULL, suffix = NULL, big.mark = NULL, decimal.mark = NULL, trim = TRUE, ... ) label_currency_za( accuracy = 1, scale = 1, currency = "ZAR", prefix = NULL, suffix = NULL, big.mark = NULL, decimal.mark = NULL, trim = TRUE, ... )
accuracy |
A number to round to. Use (e.g.) Applied to rescaled data. |
scale |
A scaling factor: |
prefix |
Additional text to display before the number. The suffix is
applied to absolute value before |
suffix |
Additional text to display after the number. |
big.mark |
Character used between every 3 digits to separate thousands.
The default ( |
decimal.mark |
The character to be used to indicate the numeric
decimal point. The default ( |
trim |
Logical, if |
... |
Other arguments passed on to |
currency |
currency symbol |
label_number_za formats numbers in decimal format.
label_percent_za formats numbers as percentages.
label_currency_za formats numbers as currencies.
A labelling function that takes a numeric vector and returns a character vector.
# rendered directly (rather than via scales::demo_continuous()) because # several locales' group/currency signs aren't in the check device's font label_number_za()(c(-1e6, 0, 1e6)) label_percent_za(accuracy = .01)(c(-1, 0, 1)) label_currency_za(accuracy = .1)(c(-1e6, 0, 1e6))# rendered directly (rather than via scales::demo_continuous()) because # several locales' group/currency signs aren't in the check device's font label_number_za()(c(-1e6, 0, 1e6)) label_percent_za(accuracy = .01)(c(-1, 0, 1)) label_currency_za(accuracy = .1)(c(-1e6, 0, 1e6))
A dataset containing specification of formatting styles to label numbers, percentages and currencies for 574 locales based on CLDR (Common Locale Data Repository) data provided by the i18n package.
localeslocales
An object of class tbl_df (inherits from tbl, data.frame) with 764 rows and 46 columns.
https://rich-iannone.github.io/i18n/
The scale_xxx_xxx family of functions makes it easy to format axis text in decimal format, as percentages or as currencies.
scale_x_number_ar( name = waiver(), breaks = waiver(), minor_breaks = waiver(), guide = waiver(), n.breaks = NULL, labels = waiver(), limits = NULL, expand = waiver(), oob = censor, na.value = NA_real_, trans = "identity", position = "bottom", sec.axis = waiver(), accuracy = 1, scale = 1, prefix = "", suffix = "", big.mark = NULL, decimal.mark = NULL, trim = TRUE, ... ) scale_x_percent_ar( name = waiver(), breaks = waiver(), minor_breaks = waiver(), guide = waiver(), n.breaks = NULL, labels = waiver(), limits = NULL, expand = waiver(), oob = censor, na.value = NA_real_, trans = "identity", position = "bottom", sec.axis = waiver(), accuracy = 1, scale = 100, prefix = "", suffix = NULL, big.mark = NULL, decimal.mark = NULL, trim = TRUE, ... ) scale_x_currency_ar( name = waiver(), breaks = waiver(), minor_breaks = waiver(), guide = waiver(), n.breaks = NULL, labels = waiver(), limits = NULL, expand = waiver(), oob = censor, na.value = NA_real_, trans = "identity", position = "bottom", sec.axis = waiver(), accuracy = 1, scale = 1, prefix = NULL, suffix = NULL, big.mark = NULL, decimal.mark = NULL, currency = "ARS", trim = TRUE, ... ) scale_y_number_ar( name = waiver(), breaks = waiver(), minor_breaks = waiver(), guide = waiver(), n.breaks = NULL, labels = waiver(), limits = NULL, expand = waiver(), oob = censor, na.value = NA_real_, trans = "identity", position = "left", sec.axis = waiver(), accuracy = 1, scale = 1, prefix = "", suffix = "", big.mark = NULL, decimal.mark = NULL, trim = TRUE, ... ) scale_y_percent_ar( name = waiver(), breaks = waiver(), minor_breaks = waiver(), guide = waiver(), n.breaks = NULL, labels = waiver(), limits = NULL, expand = waiver(), oob = censor, na.value = NA_real_, trans = "identity", position = "left", sec.axis = waiver(), accuracy = 1, scale = 100, prefix = "", suffix = NULL, big.mark = NULL, decimal.mark = NULL, trim = TRUE, ... ) scale_y_currency_ar( name = waiver(), breaks = waiver(), minor_breaks = waiver(), guide = waiver(), n.breaks = NULL, labels = waiver(), limits = NULL, expand = waiver(), oob = censor, na.value = NA_real_, trans = "identity", position = "left", sec.axis = waiver(), accuracy = 1, scale = 1, prefix = NULL, suffix = NULL, big.mark = NULL, decimal.mark = NULL, currency = "ARS", trim = TRUE, ... )scale_x_number_ar( name = waiver(), breaks = waiver(), minor_breaks = waiver(), guide = waiver(), n.breaks = NULL, labels = waiver(), limits = NULL, expand = waiver(), oob = censor, na.value = NA_real_, trans = "identity", position = "bottom", sec.axis = waiver(), accuracy = 1, scale = 1, prefix = "", suffix = "", big.mark = NULL, decimal.mark = NULL, trim = TRUE, ... ) scale_x_percent_ar( name = waiver(), breaks = waiver(), minor_breaks = waiver(), guide = waiver(), n.breaks = NULL, labels = waiver(), limits = NULL, expand = waiver(), oob = censor, na.value = NA_real_, trans = "identity", position = "bottom", sec.axis = waiver(), accuracy = 1, scale = 100, prefix = "", suffix = NULL, big.mark = NULL, decimal.mark = NULL, trim = TRUE, ... ) scale_x_currency_ar( name = waiver(), breaks = waiver(), minor_breaks = waiver(), guide = waiver(), n.breaks = NULL, labels = waiver(), limits = NULL, expand = waiver(), oob = censor, na.value = NA_real_, trans = "identity", position = "bottom", sec.axis = waiver(), accuracy = 1, scale = 1, prefix = NULL, suffix = NULL, big.mark = NULL, decimal.mark = NULL, currency = "ARS", trim = TRUE, ... ) scale_y_number_ar( name = waiver(), breaks = waiver(), minor_breaks = waiver(), guide = waiver(), n.breaks = NULL, labels = waiver(), limits = NULL, expand = waiver(), oob = censor, na.value = NA_real_, trans = "identity", position = "left", sec.axis = waiver(), accuracy = 1, scale = 1, prefix = "", suffix = "", big.mark = NULL, decimal.mark = NULL, trim = TRUE, ... ) scale_y_percent_ar( name = waiver(), breaks = waiver(), minor_breaks = waiver(), guide = waiver(), n.breaks = NULL, labels = waiver(), limits = NULL, expand = waiver(), oob = censor, na.value = NA_real_, trans = "identity", position = "left", sec.axis = waiver(), accuracy = 1, scale = 100, prefix = "", suffix = NULL, big.mark = NULL, decimal.mark = NULL, trim = TRUE, ... ) scale_y_currency_ar( name = waiver(), breaks = waiver(), minor_breaks = waiver(), guide = waiver(), n.breaks = NULL, labels = waiver(), limits = NULL, expand = waiver(), oob = censor, na.value = NA_real_, trans = "identity", position = "left", sec.axis = waiver(), accuracy = 1, scale = 1, prefix = NULL, suffix = NULL, big.mark = NULL, decimal.mark = NULL, currency = "ARS", trim = TRUE, ... )
name |
The name of the scale. Used as the axis or legend title. If
|
breaks |
One of:
|
minor_breaks |
One of:
|
guide |
A function used to create a guide or its name. See
|
n.breaks |
An integer guiding the number of major breaks. The algorithm
may choose a slightly different number to ensure nice break labels. Will
only have an effect if |
labels |
One of:
|
limits |
One of:
|
expand |
For position scales, a vector of range expansion constants used to add some
padding around the data to ensure that they are placed some distance
away from the axes. Use the convenience function |
oob |
One of:
|
na.value |
Missing values will be replaced with this value. |
trans |
|
position |
For position scales, The position of the axis.
|
sec.axis |
|
accuracy |
A number to round to. Use (e.g.) Applied to rescaled data. |
scale |
A scaling factor: |
prefix |
Additional text to display before the number. The suffix is
applied to absolute value before |
suffix |
Additional text to display after the number. |
big.mark |
Character used between every 3 digits to separate thousands.
The default ( |
decimal.mark |
The character to be used to indicate the numeric
decimal point. The default ( |
trim |
Logical, if |
... |
Other arguments passed on to |
currency |
currency symbol |
the number ones format axis text in decimal format.
the percent ones format axis text as percentages.
the currency ones format axis text as currencies.
A ggplot2 scale, for use in a +-chained plot construction.
# not rendered via demo_number(): several locales' group/currency signs # aren't in the check device's font, so only the (unrendered) scale # objects are shown scale_x_number_ar() scale_x_percent_ar() scale_x_currency_ar()# not rendered via demo_number(): several locales' group/currency signs # aren't in the check device's font, so only the (unrendered) scale # objects are shown scale_x_number_ar() scale_x_percent_ar() scale_x_currency_ar()
The scale_xxx_xxx family of functions makes it easy to format axis text in decimal format, as percentages or as currencies.
scale_x_number_at( name = waiver(), breaks = waiver(), minor_breaks = waiver(), guide = waiver(), n.breaks = NULL, labels = waiver(), limits = NULL, expand = waiver(), oob = censor, na.value = NA_real_, trans = "identity", position = "bottom", sec.axis = waiver(), accuracy = 1, scale = 1, prefix = "", suffix = "", big.mark = NULL, decimal.mark = NULL, trim = TRUE, ... ) scale_x_percent_at( name = waiver(), breaks = waiver(), minor_breaks = waiver(), guide = waiver(), n.breaks = NULL, labels = waiver(), limits = NULL, expand = waiver(), oob = censor, na.value = NA_real_, trans = "identity", position = "bottom", sec.axis = waiver(), accuracy = 1, scale = 100, prefix = "", suffix = NULL, big.mark = NULL, decimal.mark = NULL, trim = TRUE, ... ) scale_x_currency_at( name = waiver(), breaks = waiver(), minor_breaks = waiver(), guide = waiver(), n.breaks = NULL, labels = waiver(), limits = NULL, expand = waiver(), oob = censor, na.value = NA_real_, trans = "identity", position = "bottom", sec.axis = waiver(), accuracy = 1, scale = 1, prefix = NULL, suffix = NULL, big.mark = NULL, decimal.mark = NULL, currency = "EUR", trim = TRUE, ... ) scale_y_number_at( name = waiver(), breaks = waiver(), minor_breaks = waiver(), guide = waiver(), n.breaks = NULL, labels = waiver(), limits = NULL, expand = waiver(), oob = censor, na.value = NA_real_, trans = "identity", position = "left", sec.axis = waiver(), accuracy = 1, scale = 1, prefix = "", suffix = "", big.mark = NULL, decimal.mark = NULL, trim = TRUE, ... ) scale_y_percent_at( name = waiver(), breaks = waiver(), minor_breaks = waiver(), guide = waiver(), n.breaks = NULL, labels = waiver(), limits = NULL, expand = waiver(), oob = censor, na.value = NA_real_, trans = "identity", position = "left", sec.axis = waiver(), accuracy = 1, scale = 100, prefix = "", suffix = NULL, big.mark = NULL, decimal.mark = NULL, trim = TRUE, ... ) scale_y_currency_at( name = waiver(), breaks = waiver(), minor_breaks = waiver(), guide = waiver(), n.breaks = NULL, labels = waiver(), limits = NULL, expand = waiver(), oob = censor, na.value = NA_real_, trans = "identity", position = "left", sec.axis = waiver(), accuracy = 1, scale = 1, prefix = NULL, suffix = NULL, big.mark = NULL, decimal.mark = NULL, currency = "EUR", trim = TRUE, ... )scale_x_number_at( name = waiver(), breaks = waiver(), minor_breaks = waiver(), guide = waiver(), n.breaks = NULL, labels = waiver(), limits = NULL, expand = waiver(), oob = censor, na.value = NA_real_, trans = "identity", position = "bottom", sec.axis = waiver(), accuracy = 1, scale = 1, prefix = "", suffix = "", big.mark = NULL, decimal.mark = NULL, trim = TRUE, ... ) scale_x_percent_at( name = waiver(), breaks = waiver(), minor_breaks = waiver(), guide = waiver(), n.breaks = NULL, labels = waiver(), limits = NULL, expand = waiver(), oob = censor, na.value = NA_real_, trans = "identity", position = "bottom", sec.axis = waiver(), accuracy = 1, scale = 100, prefix = "", suffix = NULL, big.mark = NULL, decimal.mark = NULL, trim = TRUE, ... ) scale_x_currency_at( name = waiver(), breaks = waiver(), minor_breaks = waiver(), guide = waiver(), n.breaks = NULL, labels = waiver(), limits = NULL, expand = waiver(), oob = censor, na.value = NA_real_, trans = "identity", position = "bottom", sec.axis = waiver(), accuracy = 1, scale = 1, prefix = NULL, suffix = NULL, big.mark = NULL, decimal.mark = NULL, currency = "EUR", trim = TRUE, ... ) scale_y_number_at( name = waiver(), breaks = waiver(), minor_breaks = waiver(), guide = waiver(), n.breaks = NULL, labels = waiver(), limits = NULL, expand = waiver(), oob = censor, na.value = NA_real_, trans = "identity", position = "left", sec.axis = waiver(), accuracy = 1, scale = 1, prefix = "", suffix = "", big.mark = NULL, decimal.mark = NULL, trim = TRUE, ... ) scale_y_percent_at( name = waiver(), breaks = waiver(), minor_breaks = waiver(), guide = waiver(), n.breaks = NULL, labels = waiver(), limits = NULL, expand = waiver(), oob = censor, na.value = NA_real_, trans = "identity", position = "left", sec.axis = waiver(), accuracy = 1, scale = 100, prefix = "", suffix = NULL, big.mark = NULL, decimal.mark = NULL, trim = TRUE, ... ) scale_y_currency_at( name = waiver(), breaks = waiver(), minor_breaks = waiver(), guide = waiver(), n.breaks = NULL, labels = waiver(), limits = NULL, expand = waiver(), oob = censor, na.value = NA_real_, trans = "identity", position = "left", sec.axis = waiver(), accuracy = 1, scale = 1, prefix = NULL, suffix = NULL, big.mark = NULL, decimal.mark = NULL, currency = "EUR", trim = TRUE, ... )
name |
The name of the scale. Used as the axis or legend title. If
|
breaks |
One of:
|
minor_breaks |
One of:
|
guide |
A function used to create a guide or its name. See
|
n.breaks |
An integer guiding the number of major breaks. The algorithm
may choose a slightly different number to ensure nice break labels. Will
only have an effect if |
labels |
One of:
|
limits |
One of:
|
expand |
For position scales, a vector of range expansion constants used to add some
padding around the data to ensure that they are placed some distance
away from the axes. Use the convenience function |
oob |
One of:
|
na.value |
Missing values will be replaced with this value. |
trans |
|
position |
For position scales, The position of the axis.
|
sec.axis |
|
accuracy |
A number to round to. Use (e.g.) Applied to rescaled data. |
scale |
A scaling factor: |
prefix |
Additional text to display before the number. The suffix is
applied to absolute value before |
suffix |
Additional text to display after the number. |
big.mark |
Character used between every 3 digits to separate thousands.
The default ( |
decimal.mark |
The character to be used to indicate the numeric
decimal point. The default ( |
trim |
Logical, if |
... |
Other arguments passed on to |
currency |
currency symbol |
the number ones format axis text in decimal format.
the percent ones format axis text as percentages.
the currency ones format axis text as currencies.
A ggplot2 scale, for use in a +-chained plot construction.
# not rendered via demo_number(): several locales' group/currency signs # aren't in the check device's font, so only the (unrendered) scale # objects are shown scale_x_number_at() scale_x_percent_at() scale_x_currency_at()# not rendered via demo_number(): several locales' group/currency signs # aren't in the check device's font, so only the (unrendered) scale # objects are shown scale_x_number_at() scale_x_percent_at() scale_x_currency_at()
The scale_xxx_xxx family of functions makes it easy to format axis text in decimal format, as percentages or as currencies.
scale_x_number_au( name = waiver(), breaks = waiver(), minor_breaks = waiver(), guide = waiver(), n.breaks = NULL, labels = waiver(), limits = NULL, expand = waiver(), oob = censor, na.value = NA_real_, trans = "identity", position = "bottom", sec.axis = waiver(), accuracy = 1, scale = 1, prefix = "", suffix = "", big.mark = NULL, decimal.mark = NULL, trim = TRUE, ... ) scale_x_percent_au( name = waiver(), breaks = waiver(), minor_breaks = waiver(), guide = waiver(), n.breaks = NULL, labels = waiver(), limits = NULL, expand = waiver(), oob = censor, na.value = NA_real_, trans = "identity", position = "bottom", sec.axis = waiver(), accuracy = 1, scale = 100, prefix = "", suffix = NULL, big.mark = NULL, decimal.mark = NULL, trim = TRUE, ... ) scale_x_currency_au( name = waiver(), breaks = waiver(), minor_breaks = waiver(), guide = waiver(), n.breaks = NULL, labels = waiver(), limits = NULL, expand = waiver(), oob = censor, na.value = NA_real_, trans = "identity", position = "bottom", sec.axis = waiver(), accuracy = 1, scale = 1, prefix = NULL, suffix = NULL, big.mark = NULL, decimal.mark = NULL, currency = "AUD", trim = TRUE, ... ) scale_y_number_au( name = waiver(), breaks = waiver(), minor_breaks = waiver(), guide = waiver(), n.breaks = NULL, labels = waiver(), limits = NULL, expand = waiver(), oob = censor, na.value = NA_real_, trans = "identity", position = "left", sec.axis = waiver(), accuracy = 1, scale = 1, prefix = "", suffix = "", big.mark = NULL, decimal.mark = NULL, trim = TRUE, ... ) scale_y_percent_au( name = waiver(), breaks = waiver(), minor_breaks = waiver(), guide = waiver(), n.breaks = NULL, labels = waiver(), limits = NULL, expand = waiver(), oob = censor, na.value = NA_real_, trans = "identity", position = "left", sec.axis = waiver(), accuracy = 1, scale = 100, prefix = "", suffix = NULL, big.mark = NULL, decimal.mark = NULL, trim = TRUE, ... ) scale_y_currency_au( name = waiver(), breaks = waiver(), minor_breaks = waiver(), guide = waiver(), n.breaks = NULL, labels = waiver(), limits = NULL, expand = waiver(), oob = censor, na.value = NA_real_, trans = "identity", position = "left", sec.axis = waiver(), accuracy = 1, scale = 1, prefix = NULL, suffix = NULL, big.mark = NULL, decimal.mark = NULL, currency = "AUD", trim = TRUE, ... )scale_x_number_au( name = waiver(), breaks = waiver(), minor_breaks = waiver(), guide = waiver(), n.breaks = NULL, labels = waiver(), limits = NULL, expand = waiver(), oob = censor, na.value = NA_real_, trans = "identity", position = "bottom", sec.axis = waiver(), accuracy = 1, scale = 1, prefix = "", suffix = "", big.mark = NULL, decimal.mark = NULL, trim = TRUE, ... ) scale_x_percent_au( name = waiver(), breaks = waiver(), minor_breaks = waiver(), guide = waiver(), n.breaks = NULL, labels = waiver(), limits = NULL, expand = waiver(), oob = censor, na.value = NA_real_, trans = "identity", position = "bottom", sec.axis = waiver(), accuracy = 1, scale = 100, prefix = "", suffix = NULL, big.mark = NULL, decimal.mark = NULL, trim = TRUE, ... ) scale_x_currency_au( name = waiver(), breaks = waiver(), minor_breaks = waiver(), guide = waiver(), n.breaks = NULL, labels = waiver(), limits = NULL, expand = waiver(), oob = censor, na.value = NA_real_, trans = "identity", position = "bottom", sec.axis = waiver(), accuracy = 1, scale = 1, prefix = NULL, suffix = NULL, big.mark = NULL, decimal.mark = NULL, currency = "AUD", trim = TRUE, ... ) scale_y_number_au( name = waiver(), breaks = waiver(), minor_breaks = waiver(), guide = waiver(), n.breaks = NULL, labels = waiver(), limits = NULL, expand = waiver(), oob = censor, na.value = NA_real_, trans = "identity", position = "left", sec.axis = waiver(), accuracy = 1, scale = 1, prefix = "", suffix = "", big.mark = NULL, decimal.mark = NULL, trim = TRUE, ... ) scale_y_percent_au( name = waiver(), breaks = waiver(), minor_breaks = waiver(), guide = waiver(), n.breaks = NULL, labels = waiver(), limits = NULL, expand = waiver(), oob = censor, na.value = NA_real_, trans = "identity", position = "left", sec.axis = waiver(), accuracy = 1, scale = 100, prefix = "", suffix = NULL, big.mark = NULL, decimal.mark = NULL, trim = TRUE, ... ) scale_y_currency_au( name = waiver(), breaks = waiver(), minor_breaks = waiver(), guide = waiver(), n.breaks = NULL, labels = waiver(), limits = NULL, expand = waiver(), oob = censor, na.value = NA_real_, trans = "identity", position = "left", sec.axis = waiver(), accuracy = 1, scale = 1, prefix = NULL, suffix = NULL, big.mark = NULL, decimal.mark = NULL, currency = "AUD", trim = TRUE, ... )
name |
The name of the scale. Used as the axis or legend title. If
|
breaks |
One of:
|
minor_breaks |
One of:
|
guide |
A function used to create a guide or its name. See
|
n.breaks |
An integer guiding the number of major breaks. The algorithm
may choose a slightly different number to ensure nice break labels. Will
only have an effect if |
labels |
One of:
|
limits |
One of:
|
expand |
For position scales, a vector of range expansion constants used to add some
padding around the data to ensure that they are placed some distance
away from the axes. Use the convenience function |
oob |
One of:
|
na.value |
Missing values will be replaced with this value. |
trans |
|
position |
For position scales, The position of the axis.
|
sec.axis |
|
accuracy |
A number to round to. Use (e.g.) Applied to rescaled data. |
scale |
A scaling factor: |
prefix |
Additional text to display before the number. The suffix is
applied to absolute value before |
suffix |
Additional text to display after the number. |
big.mark |
Character used between every 3 digits to separate thousands.
The default ( |
decimal.mark |
The character to be used to indicate the numeric
decimal point. The default ( |
trim |
Logical, if |
... |
Other arguments passed on to |
currency |
currency symbol |
the number ones format axis text in decimal format.
the percent ones format axis text as percentages.
the currency ones format axis text as currencies.
A ggplot2 scale, for use in a +-chained plot construction.
# not rendered via demo_number(): several locales' group/currency signs # aren't in the check device's font, so only the (unrendered) scale # objects are shown scale_x_number_au() scale_x_percent_au() scale_x_currency_au()# not rendered via demo_number(): several locales' group/currency signs # aren't in the check device's font, so only the (unrendered) scale # objects are shown scale_x_number_au() scale_x_percent_au() scale_x_currency_au()
The scale_xxx_xxx family of functions makes it easy to format axis text in decimal format, as percentages or as currencies.
scale_x_number_br( name = waiver(), breaks = waiver(), minor_breaks = waiver(), guide = waiver(), n.breaks = NULL, labels = waiver(), limits = NULL, expand = waiver(), oob = censor, na.value = NA_real_, trans = "identity", position = "bottom", sec.axis = waiver(), accuracy = 1, scale = 1, prefix = "", suffix = "", big.mark = NULL, decimal.mark = NULL, trim = TRUE, ... ) scale_x_percent_br( name = waiver(), breaks = waiver(), minor_breaks = waiver(), guide = waiver(), n.breaks = NULL, labels = waiver(), limits = NULL, expand = waiver(), oob = censor, na.value = NA_real_, trans = "identity", position = "bottom", sec.axis = waiver(), accuracy = 1, scale = 100, prefix = "", suffix = NULL, big.mark = NULL, decimal.mark = NULL, trim = TRUE, ... ) scale_x_currency_br( name = waiver(), breaks = waiver(), minor_breaks = waiver(), guide = waiver(), n.breaks = NULL, labels = waiver(), limits = NULL, expand = waiver(), oob = censor, na.value = NA_real_, trans = "identity", position = "bottom", sec.axis = waiver(), accuracy = 1, scale = 1, prefix = NULL, suffix = NULL, big.mark = NULL, decimal.mark = NULL, currency = "BRL", trim = TRUE, ... ) scale_y_number_br( name = waiver(), breaks = waiver(), minor_breaks = waiver(), guide = waiver(), n.breaks = NULL, labels = waiver(), limits = NULL, expand = waiver(), oob = censor, na.value = NA_real_, trans = "identity", position = "left", sec.axis = waiver(), accuracy = 1, scale = 1, prefix = "", suffix = "", big.mark = NULL, decimal.mark = NULL, trim = TRUE, ... ) scale_y_percent_br( name = waiver(), breaks = waiver(), minor_breaks = waiver(), guide = waiver(), n.breaks = NULL, labels = waiver(), limits = NULL, expand = waiver(), oob = censor, na.value = NA_real_, trans = "identity", position = "left", sec.axis = waiver(), accuracy = 1, scale = 100, prefix = "", suffix = NULL, big.mark = NULL, decimal.mark = NULL, trim = TRUE, ... ) scale_y_currency_br( name = waiver(), breaks = waiver(), minor_breaks = waiver(), guide = waiver(), n.breaks = NULL, labels = waiver(), limits = NULL, expand = waiver(), oob = censor, na.value = NA_real_, trans = "identity", position = "left", sec.axis = waiver(), accuracy = 1, scale = 1, prefix = NULL, suffix = NULL, big.mark = NULL, decimal.mark = NULL, currency = "BRL", trim = TRUE, ... )scale_x_number_br( name = waiver(), breaks = waiver(), minor_breaks = waiver(), guide = waiver(), n.breaks = NULL, labels = waiver(), limits = NULL, expand = waiver(), oob = censor, na.value = NA_real_, trans = "identity", position = "bottom", sec.axis = waiver(), accuracy = 1, scale = 1, prefix = "", suffix = "", big.mark = NULL, decimal.mark = NULL, trim = TRUE, ... ) scale_x_percent_br( name = waiver(), breaks = waiver(), minor_breaks = waiver(), guide = waiver(), n.breaks = NULL, labels = waiver(), limits = NULL, expand = waiver(), oob = censor, na.value = NA_real_, trans = "identity", position = "bottom", sec.axis = waiver(), accuracy = 1, scale = 100, prefix = "", suffix = NULL, big.mark = NULL, decimal.mark = NULL, trim = TRUE, ... ) scale_x_currency_br( name = waiver(), breaks = waiver(), minor_breaks = waiver(), guide = waiver(), n.breaks = NULL, labels = waiver(), limits = NULL, expand = waiver(), oob = censor, na.value = NA_real_, trans = "identity", position = "bottom", sec.axis = waiver(), accuracy = 1, scale = 1, prefix = NULL, suffix = NULL, big.mark = NULL, decimal.mark = NULL, currency = "BRL", trim = TRUE, ... ) scale_y_number_br( name = waiver(), breaks = waiver(), minor_breaks = waiver(), guide = waiver(), n.breaks = NULL, labels = waiver(), limits = NULL, expand = waiver(), oob = censor, na.value = NA_real_, trans = "identity", position = "left", sec.axis = waiver(), accuracy = 1, scale = 1, prefix = "", suffix = "", big.mark = NULL, decimal.mark = NULL, trim = TRUE, ... ) scale_y_percent_br( name = waiver(), breaks = waiver(), minor_breaks = waiver(), guide = waiver(), n.breaks = NULL, labels = waiver(), limits = NULL, expand = waiver(), oob = censor, na.value = NA_real_, trans = "identity", position = "left", sec.axis = waiver(), accuracy = 1, scale = 100, prefix = "", suffix = NULL, big.mark = NULL, decimal.mark = NULL, trim = TRUE, ... ) scale_y_currency_br( name = waiver(), breaks = waiver(), minor_breaks = waiver(), guide = waiver(), n.breaks = NULL, labels = waiver(), limits = NULL, expand = waiver(), oob = censor, na.value = NA_real_, trans = "identity", position = "left", sec.axis = waiver(), accuracy = 1, scale = 1, prefix = NULL, suffix = NULL, big.mark = NULL, decimal.mark = NULL, currency = "BRL", trim = TRUE, ... )
name |
The name of the scale. Used as the axis or legend title. If
|
breaks |
One of:
|
minor_breaks |
One of:
|
guide |
A function used to create a guide or its name. See
|
n.breaks |
An integer guiding the number of major breaks. The algorithm
may choose a slightly different number to ensure nice break labels. Will
only have an effect if |
labels |
One of:
|
limits |
One of:
|
expand |
For position scales, a vector of range expansion constants used to add some
padding around the data to ensure that they are placed some distance
away from the axes. Use the convenience function |
oob |
One of:
|
na.value |
Missing values will be replaced with this value. |
trans |
|
position |
For position scales, The position of the axis.
|
sec.axis |
|
accuracy |
A number to round to. Use (e.g.) Applied to rescaled data. |
scale |
A scaling factor: |
prefix |
Additional text to display before the number. The suffix is
applied to absolute value before |
suffix |
Additional text to display after the number. |
big.mark |
Character used between every 3 digits to separate thousands.
The default ( |
decimal.mark |
The character to be used to indicate the numeric
decimal point. The default ( |
trim |
Logical, if |
... |
Other arguments passed on to |
currency |
currency symbol |
the number ones format axis text in decimal format.
the percent ones format axis text as percentages.
the currency ones format axis text as currencies.
A ggplot2 scale, for use in a +-chained plot construction.
# not rendered via demo_number(): several locales' group/currency signs # aren't in the check device's font, so only the (unrendered) scale # objects are shown scale_x_number_br() scale_x_percent_br() scale_x_currency_br()# not rendered via demo_number(): several locales' group/currency signs # aren't in the check device's font, so only the (unrendered) scale # objects are shown scale_x_number_br() scale_x_percent_br() scale_x_currency_br()
The scale_xxx_xxx family of functions makes it easy to format axis text in decimal format, as percentages or as currencies.
scale_x_number_ca( name = waiver(), breaks = waiver(), minor_breaks = waiver(), guide = waiver(), n.breaks = NULL, labels = waiver(), limits = NULL, expand = waiver(), oob = censor, na.value = NA_real_, trans = "identity", position = "bottom", sec.axis = waiver(), accuracy = 1, scale = 1, prefix = "", suffix = "", big.mark = NULL, decimal.mark = NULL, trim = TRUE, ... ) scale_x_percent_ca( name = waiver(), breaks = waiver(), minor_breaks = waiver(), guide = waiver(), n.breaks = NULL, labels = waiver(), limits = NULL, expand = waiver(), oob = censor, na.value = NA_real_, trans = "identity", position = "bottom", sec.axis = waiver(), accuracy = 1, scale = 100, prefix = "", suffix = NULL, big.mark = NULL, decimal.mark = NULL, trim = TRUE, ... ) scale_x_currency_ca( name = waiver(), breaks = waiver(), minor_breaks = waiver(), guide = waiver(), n.breaks = NULL, labels = waiver(), limits = NULL, expand = waiver(), oob = censor, na.value = NA_real_, trans = "identity", position = "bottom", sec.axis = waiver(), accuracy = 1, scale = 1, prefix = NULL, suffix = NULL, big.mark = NULL, decimal.mark = NULL, currency = "CAD", trim = TRUE, ... ) scale_y_number_ca( name = waiver(), breaks = waiver(), minor_breaks = waiver(), guide = waiver(), n.breaks = NULL, labels = waiver(), limits = NULL, expand = waiver(), oob = censor, na.value = NA_real_, trans = "identity", position = "left", sec.axis = waiver(), accuracy = 1, scale = 1, prefix = "", suffix = "", big.mark = NULL, decimal.mark = NULL, trim = TRUE, ... ) scale_y_percent_ca( name = waiver(), breaks = waiver(), minor_breaks = waiver(), guide = waiver(), n.breaks = NULL, labels = waiver(), limits = NULL, expand = waiver(), oob = censor, na.value = NA_real_, trans = "identity", position = "left", sec.axis = waiver(), accuracy = 1, scale = 100, prefix = "", suffix = NULL, big.mark = NULL, decimal.mark = NULL, trim = TRUE, ... ) scale_y_currency_ca( name = waiver(), breaks = waiver(), minor_breaks = waiver(), guide = waiver(), n.breaks = NULL, labels = waiver(), limits = NULL, expand = waiver(), oob = censor, na.value = NA_real_, trans = "identity", position = "left", sec.axis = waiver(), accuracy = 1, scale = 1, prefix = NULL, suffix = NULL, big.mark = NULL, decimal.mark = NULL, currency = "CAD", trim = TRUE, ... )scale_x_number_ca( name = waiver(), breaks = waiver(), minor_breaks = waiver(), guide = waiver(), n.breaks = NULL, labels = waiver(), limits = NULL, expand = waiver(), oob = censor, na.value = NA_real_, trans = "identity", position = "bottom", sec.axis = waiver(), accuracy = 1, scale = 1, prefix = "", suffix = "", big.mark = NULL, decimal.mark = NULL, trim = TRUE, ... ) scale_x_percent_ca( name = waiver(), breaks = waiver(), minor_breaks = waiver(), guide = waiver(), n.breaks = NULL, labels = waiver(), limits = NULL, expand = waiver(), oob = censor, na.value = NA_real_, trans = "identity", position = "bottom", sec.axis = waiver(), accuracy = 1, scale = 100, prefix = "", suffix = NULL, big.mark = NULL, decimal.mark = NULL, trim = TRUE, ... ) scale_x_currency_ca( name = waiver(), breaks = waiver(), minor_breaks = waiver(), guide = waiver(), n.breaks = NULL, labels = waiver(), limits = NULL, expand = waiver(), oob = censor, na.value = NA_real_, trans = "identity", position = "bottom", sec.axis = waiver(), accuracy = 1, scale = 1, prefix = NULL, suffix = NULL, big.mark = NULL, decimal.mark = NULL, currency = "CAD", trim = TRUE, ... ) scale_y_number_ca( name = waiver(), breaks = waiver(), minor_breaks = waiver(), guide = waiver(), n.breaks = NULL, labels = waiver(), limits = NULL, expand = waiver(), oob = censor, na.value = NA_real_, trans = "identity", position = "left", sec.axis = waiver(), accuracy = 1, scale = 1, prefix = "", suffix = "", big.mark = NULL, decimal.mark = NULL, trim = TRUE, ... ) scale_y_percent_ca( name = waiver(), breaks = waiver(), minor_breaks = waiver(), guide = waiver(), n.breaks = NULL, labels = waiver(), limits = NULL, expand = waiver(), oob = censor, na.value = NA_real_, trans = "identity", position = "left", sec.axis = waiver(), accuracy = 1, scale = 100, prefix = "", suffix = NULL, big.mark = NULL, decimal.mark = NULL, trim = TRUE, ... ) scale_y_currency_ca( name = waiver(), breaks = waiver(), minor_breaks = waiver(), guide = waiver(), n.breaks = NULL, labels = waiver(), limits = NULL, expand = waiver(), oob = censor, na.value = NA_real_, trans = "identity", position = "left", sec.axis = waiver(), accuracy = 1, scale = 1, prefix = NULL, suffix = NULL, big.mark = NULL, decimal.mark = NULL, currency = "CAD", trim = TRUE, ... )
name |
The name of the scale. Used as the axis or legend title. If
|
breaks |
One of:
|
minor_breaks |
One of:
|
guide |
A function used to create a guide or its name. See
|
n.breaks |
An integer guiding the number of major breaks. The algorithm
may choose a slightly different number to ensure nice break labels. Will
only have an effect if |
labels |
One of:
|
limits |
One of:
|
expand |
For position scales, a vector of range expansion constants used to add some
padding around the data to ensure that they are placed some distance
away from the axes. Use the convenience function |
oob |
One of:
|
na.value |
Missing values will be replaced with this value. |
trans |
|
position |
For position scales, The position of the axis.
|
sec.axis |
|
accuracy |
A number to round to. Use (e.g.) Applied to rescaled data. |
scale |
A scaling factor: |
prefix |
Additional text to display before the number. The suffix is
applied to absolute value before |
suffix |
Additional text to display after the number. |
big.mark |
Character used between every 3 digits to separate thousands.
The default ( |
decimal.mark |
The character to be used to indicate the numeric
decimal point. The default ( |
trim |
Logical, if |
... |
Other arguments passed on to |
currency |
currency symbol |
the number ones format axis text in decimal format.
the percent ones format axis text as percentages.
the currency ones format axis text as currencies.
A ggplot2 scale, for use in a +-chained plot construction.
# not rendered via demo_number(): several locales' group/currency signs # aren't in the check device's font, so only the (unrendered) scale # objects are shown scale_x_number_ca() scale_x_percent_ca() scale_x_currency_ca()# not rendered via demo_number(): several locales' group/currency signs # aren't in the check device's font, so only the (unrendered) scale # objects are shown scale_x_number_ca() scale_x_percent_ca() scale_x_currency_ca()
The scale_xxx_xxx family of functions makes it easy to format axis text in decimal format, as percentages or as currencies.
scale_x_number_ch( name = waiver(), breaks = waiver(), minor_breaks = waiver(), guide = waiver(), n.breaks = NULL, labels = waiver(), limits = NULL, expand = waiver(), oob = censor, na.value = NA_real_, trans = "identity", position = "bottom", sec.axis = waiver(), accuracy = 1, scale = 1, prefix = "", suffix = "", big.mark = NULL, decimal.mark = NULL, trim = TRUE, ... ) scale_y_number_ch( name = waiver(), breaks = waiver(), minor_breaks = waiver(), guide = waiver(), n.breaks = NULL, labels = waiver(), limits = NULL, expand = waiver(), oob = censor, na.value = NA_real_, trans = "identity", position = "left", sec.axis = waiver(), accuracy = 1, scale = 1, prefix = "", suffix = "", big.mark = NULL, decimal.mark = NULL, trim = TRUE, ... ) scale_x_percent_ch( name = waiver(), breaks = waiver(), minor_breaks = waiver(), guide = waiver(), n.breaks = NULL, labels = waiver(), limits = NULL, expand = waiver(), oob = censor, na.value = NA_real_, trans = "identity", position = "bottom", sec.axis = waiver(), accuracy = 1, scale = 100, prefix = NULL, suffix = NULL, big.mark = NULL, decimal.mark = NULL, trim = TRUE, ... ) scale_y_percent_ch( name = waiver(), breaks = waiver(), minor_breaks = waiver(), guide = waiver(), n.breaks = NULL, labels = waiver(), limits = NULL, expand = waiver(), oob = censor, na.value = NA_real_, trans = "identity", position = "left", sec.axis = waiver(), accuracy = 1, scale = 100, prefix = NULL, suffix = NULL, big.mark = NULL, decimal.mark = NULL, trim = TRUE, ... ) scale_x_currency_ch( name = waiver(), breaks = waiver(), minor_breaks = waiver(), guide = waiver(), n.breaks = NULL, labels = waiver(), limits = NULL, expand = waiver(), oob = censor, na.value = NA_real_, trans = "identity", position = "bottom", sec.axis = waiver(), accuracy = 1, scale = 1, prefix = NULL, suffix = NULL, big.mark = NULL, decimal.mark = NULL, currency = "CHF", trim = TRUE, ... ) scale_y_currency_ch( name = waiver(), breaks = waiver(), minor_breaks = waiver(), guide = waiver(), n.breaks = NULL, labels = waiver(), limits = NULL, expand = waiver(), oob = censor, na.value = NA_real_, trans = "identity", position = "bottom", sec.axis = waiver(), accuracy = 1, scale = 1, prefix = NULL, suffix = NULL, big.mark = NULL, decimal.mark = NULL, currency = "CHF", trim = TRUE, ... )scale_x_number_ch( name = waiver(), breaks = waiver(), minor_breaks = waiver(), guide = waiver(), n.breaks = NULL, labels = waiver(), limits = NULL, expand = waiver(), oob = censor, na.value = NA_real_, trans = "identity", position = "bottom", sec.axis = waiver(), accuracy = 1, scale = 1, prefix = "", suffix = "", big.mark = NULL, decimal.mark = NULL, trim = TRUE, ... ) scale_y_number_ch( name = waiver(), breaks = waiver(), minor_breaks = waiver(), guide = waiver(), n.breaks = NULL, labels = waiver(), limits = NULL, expand = waiver(), oob = censor, na.value = NA_real_, trans = "identity", position = "left", sec.axis = waiver(), accuracy = 1, scale = 1, prefix = "", suffix = "", big.mark = NULL, decimal.mark = NULL, trim = TRUE, ... ) scale_x_percent_ch( name = waiver(), breaks = waiver(), minor_breaks = waiver(), guide = waiver(), n.breaks = NULL, labels = waiver(), limits = NULL, expand = waiver(), oob = censor, na.value = NA_real_, trans = "identity", position = "bottom", sec.axis = waiver(), accuracy = 1, scale = 100, prefix = NULL, suffix = NULL, big.mark = NULL, decimal.mark = NULL, trim = TRUE, ... ) scale_y_percent_ch( name = waiver(), breaks = waiver(), minor_breaks = waiver(), guide = waiver(), n.breaks = NULL, labels = waiver(), limits = NULL, expand = waiver(), oob = censor, na.value = NA_real_, trans = "identity", position = "left", sec.axis = waiver(), accuracy = 1, scale = 100, prefix = NULL, suffix = NULL, big.mark = NULL, decimal.mark = NULL, trim = TRUE, ... ) scale_x_currency_ch( name = waiver(), breaks = waiver(), minor_breaks = waiver(), guide = waiver(), n.breaks = NULL, labels = waiver(), limits = NULL, expand = waiver(), oob = censor, na.value = NA_real_, trans = "identity", position = "bottom", sec.axis = waiver(), accuracy = 1, scale = 1, prefix = NULL, suffix = NULL, big.mark = NULL, decimal.mark = NULL, currency = "CHF", trim = TRUE, ... ) scale_y_currency_ch( name = waiver(), breaks = waiver(), minor_breaks = waiver(), guide = waiver(), n.breaks = NULL, labels = waiver(), limits = NULL, expand = waiver(), oob = censor, na.value = NA_real_, trans = "identity", position = "bottom", sec.axis = waiver(), accuracy = 1, scale = 1, prefix = NULL, suffix = NULL, big.mark = NULL, decimal.mark = NULL, currency = "CHF", trim = TRUE, ... )
name |
The name of the scale. Used as the axis or legend title. If
|
breaks |
One of:
|
minor_breaks |
One of:
|
guide |
A function used to create a guide or its name. See
|
n.breaks |
An integer guiding the number of major breaks. The algorithm
may choose a slightly different number to ensure nice break labels. Will
only have an effect if |
labels |
One of:
|
limits |
One of:
|
expand |
For position scales, a vector of range expansion constants used to add some
padding around the data to ensure that they are placed some distance
away from the axes. Use the convenience function |
oob |
One of:
|
na.value |
Missing values will be replaced with this value. |
trans |
|
position |
For position scales, The position of the axis.
|
sec.axis |
|
accuracy |
A number to round to. Use (e.g.) Applied to rescaled data. |
scale |
A scaling factor: |
prefix |
Additional text to display before the number. The suffix is
applied to absolute value before |
suffix |
Additional text to display after the number. |
big.mark |
Character used between every 3 digits to separate thousands.
The default ( |
decimal.mark |
The character to be used to indicate the numeric
decimal point. The default ( |
trim |
Logical, if |
... |
Other arguments passed on to |
currency |
currency symbol |
the number ones format axis text in decimal format.
the percent ones format axis text as percentages.
the currency ones format axis text as currencies.
A ggplot2 scale, for use in a +-chained plot construction.
demo_number(c(-1e6, 1e6), scale_name = "number_ch") scale_x_number_ch() demo_number(c(-1, 1), scale_name = "percent_ch") scale_x_percent_ch() demo_number(c(-1e4, 1e4), scale_name = "currency_ch") scale_x_currency_ch()demo_number(c(-1e6, 1e6), scale_name = "number_ch") scale_x_number_ch() demo_number(c(-1, 1), scale_name = "percent_ch") scale_x_percent_ch() demo_number(c(-1e4, 1e4), scale_name = "currency_ch") scale_x_currency_ch()
The scale_xxx_xxx family of functions makes it easy to format axis text in decimal format, as percentages or as currencies.
scale_x_number_cn( name = waiver(), breaks = waiver(), minor_breaks = waiver(), guide = waiver(), n.breaks = NULL, labels = waiver(), limits = NULL, expand = waiver(), oob = censor, na.value = NA_real_, trans = "identity", position = "bottom", sec.axis = waiver(), accuracy = 1, scale = 1, prefix = "", suffix = "", big.mark = NULL, decimal.mark = NULL, trim = TRUE, ... ) scale_x_percent_cn( name = waiver(), breaks = waiver(), minor_breaks = waiver(), guide = waiver(), n.breaks = NULL, labels = waiver(), limits = NULL, expand = waiver(), oob = censor, na.value = NA_real_, trans = "identity", position = "bottom", sec.axis = waiver(), accuracy = 1, scale = 100, prefix = "", suffix = NULL, big.mark = NULL, decimal.mark = NULL, trim = TRUE, ... ) scale_x_currency_cn( name = waiver(), breaks = waiver(), minor_breaks = waiver(), guide = waiver(), n.breaks = NULL, labels = waiver(), limits = NULL, expand = waiver(), oob = censor, na.value = NA_real_, trans = "identity", position = "bottom", sec.axis = waiver(), accuracy = 1, scale = 1, prefix = NULL, suffix = NULL, big.mark = NULL, decimal.mark = NULL, currency = "CNY", trim = TRUE, ... ) scale_y_number_cn( name = waiver(), breaks = waiver(), minor_breaks = waiver(), guide = waiver(), n.breaks = NULL, labels = waiver(), limits = NULL, expand = waiver(), oob = censor, na.value = NA_real_, trans = "identity", position = "left", sec.axis = waiver(), accuracy = 1, scale = 1, prefix = "", suffix = "", big.mark = NULL, decimal.mark = NULL, trim = TRUE, ... ) scale_y_percent_cn( name = waiver(), breaks = waiver(), minor_breaks = waiver(), guide = waiver(), n.breaks = NULL, labels = waiver(), limits = NULL, expand = waiver(), oob = censor, na.value = NA_real_, trans = "identity", position = "left", sec.axis = waiver(), accuracy = 1, scale = 100, prefix = "", suffix = NULL, big.mark = NULL, decimal.mark = NULL, trim = TRUE, ... ) scale_y_currency_cn( name = waiver(), breaks = waiver(), minor_breaks = waiver(), guide = waiver(), n.breaks = NULL, labels = waiver(), limits = NULL, expand = waiver(), oob = censor, na.value = NA_real_, trans = "identity", position = "left", sec.axis = waiver(), accuracy = 1, scale = 1, prefix = NULL, suffix = NULL, big.mark = NULL, decimal.mark = NULL, currency = "CNY", trim = TRUE, ... )scale_x_number_cn( name = waiver(), breaks = waiver(), minor_breaks = waiver(), guide = waiver(), n.breaks = NULL, labels = waiver(), limits = NULL, expand = waiver(), oob = censor, na.value = NA_real_, trans = "identity", position = "bottom", sec.axis = waiver(), accuracy = 1, scale = 1, prefix = "", suffix = "", big.mark = NULL, decimal.mark = NULL, trim = TRUE, ... ) scale_x_percent_cn( name = waiver(), breaks = waiver(), minor_breaks = waiver(), guide = waiver(), n.breaks = NULL, labels = waiver(), limits = NULL, expand = waiver(), oob = censor, na.value = NA_real_, trans = "identity", position = "bottom", sec.axis = waiver(), accuracy = 1, scale = 100, prefix = "", suffix = NULL, big.mark = NULL, decimal.mark = NULL, trim = TRUE, ... ) scale_x_currency_cn( name = waiver(), breaks = waiver(), minor_breaks = waiver(), guide = waiver(), n.breaks = NULL, labels = waiver(), limits = NULL, expand = waiver(), oob = censor, na.value = NA_real_, trans = "identity", position = "bottom", sec.axis = waiver(), accuracy = 1, scale = 1, prefix = NULL, suffix = NULL, big.mark = NULL, decimal.mark = NULL, currency = "CNY", trim = TRUE, ... ) scale_y_number_cn( name = waiver(), breaks = waiver(), minor_breaks = waiver(), guide = waiver(), n.breaks = NULL, labels = waiver(), limits = NULL, expand = waiver(), oob = censor, na.value = NA_real_, trans = "identity", position = "left", sec.axis = waiver(), accuracy = 1, scale = 1, prefix = "", suffix = "", big.mark = NULL, decimal.mark = NULL, trim = TRUE, ... ) scale_y_percent_cn( name = waiver(), breaks = waiver(), minor_breaks = waiver(), guide = waiver(), n.breaks = NULL, labels = waiver(), limits = NULL, expand = waiver(), oob = censor, na.value = NA_real_, trans = "identity", position = "left", sec.axis = waiver(), accuracy = 1, scale = 100, prefix = "", suffix = NULL, big.mark = NULL, decimal.mark = NULL, trim = TRUE, ... ) scale_y_currency_cn( name = waiver(), breaks = waiver(), minor_breaks = waiver(), guide = waiver(), n.breaks = NULL, labels = waiver(), limits = NULL, expand = waiver(), oob = censor, na.value = NA_real_, trans = "identity", position = "left", sec.axis = waiver(), accuracy = 1, scale = 1, prefix = NULL, suffix = NULL, big.mark = NULL, decimal.mark = NULL, currency = "CNY", trim = TRUE, ... )
name |
The name of the scale. Used as the axis or legend title. If
|
breaks |
One of:
|
minor_breaks |
One of:
|
guide |
A function used to create a guide or its name. See
|
n.breaks |
An integer guiding the number of major breaks. The algorithm
may choose a slightly different number to ensure nice break labels. Will
only have an effect if |
labels |
One of:
|
limits |
One of:
|
expand |
For position scales, a vector of range expansion constants used to add some
padding around the data to ensure that they are placed some distance
away from the axes. Use the convenience function |
oob |
One of:
|
na.value |
Missing values will be replaced with this value. |
trans |
|
position |
For position scales, The position of the axis.
|
sec.axis |
|
accuracy |
A number to round to. Use (e.g.) Applied to rescaled data. |
scale |
A scaling factor: |
prefix |
Additional text to display before the number. The suffix is
applied to absolute value before |
suffix |
Additional text to display after the number. |
big.mark |
Character used between every 3 digits to separate thousands.
The default ( |
decimal.mark |
The character to be used to indicate the numeric
decimal point. The default ( |
trim |
Logical, if |
... |
Other arguments passed on to |
currency |
currency symbol |
the number ones format axis text in decimal format.
the percent ones format axis text as percentages.
the currency ones format axis text as currencies.
A ggplot2 scale, for use in a +-chained plot construction.
# not rendered via demo_number(): several locales' group/currency signs # aren't in the check device's font, so only the (unrendered) scale # objects are shown scale_x_number_cn() scale_x_percent_cn() scale_x_currency_cn()# not rendered via demo_number(): several locales' group/currency signs # aren't in the check device's font, so only the (unrendered) scale # objects are shown scale_x_number_cn() scale_x_percent_cn() scale_x_currency_cn()
The scale_xxx_xxx family of functions makes it easy to format axis text in decimal format, as percentages or as currencies.
scale_x_number_de( name = waiver(), breaks = waiver(), minor_breaks = waiver(), guide = waiver(), n.breaks = NULL, labels = waiver(), limits = NULL, expand = waiver(), oob = censor, na.value = NA_real_, trans = "identity", position = "bottom", sec.axis = waiver(), accuracy = 1, scale = 1, prefix = "", suffix = "", big.mark = NULL, decimal.mark = NULL, trim = TRUE, ... ) scale_y_number_de( name = waiver(), breaks = waiver(), minor_breaks = waiver(), guide = waiver(), n.breaks = NULL, labels = waiver(), limits = NULL, expand = waiver(), oob = censor, na.value = NA_real_, trans = "identity", position = "left", sec.axis = waiver(), accuracy = 1, scale = 1, prefix = "", suffix = "", big.mark = NULL, decimal.mark = NULL, trim = TRUE, ... ) scale_x_percent_de( name = waiver(), breaks = waiver(), minor_breaks = waiver(), guide = waiver(), n.breaks = NULL, labels = waiver(), limits = NULL, expand = waiver(), oob = censor, na.value = NA_real_, trans = "identity", position = "bottom", sec.axis = waiver(), accuracy = 1, scale = 100, prefix = NULL, suffix = NULL, big.mark = NULL, decimal.mark = NULL, trim = TRUE, ... ) scale_y_percent_de( name = waiver(), breaks = waiver(), minor_breaks = waiver(), guide = waiver(), n.breaks = NULL, labels = waiver(), limits = NULL, expand = waiver(), oob = censor, na.value = NA_real_, trans = "identity", position = "left", sec.axis = waiver(), accuracy = 1, scale = 100, prefix = NULL, suffix = NULL, big.mark = NULL, decimal.mark = NULL, trim = TRUE, ... ) scale_x_currency_de( name = waiver(), breaks = waiver(), minor_breaks = waiver(), guide = waiver(), n.breaks = NULL, labels = waiver(), limits = NULL, expand = waiver(), oob = censor, na.value = NA_real_, trans = "identity", position = "bottom", sec.axis = waiver(), accuracy = 1, scale = 1, prefix = NULL, suffix = NULL, big.mark = NULL, decimal.mark = NULL, currency = "EUR", trim = TRUE, ... ) scale_y_currency_de( name = waiver(), breaks = waiver(), minor_breaks = waiver(), guide = waiver(), n.breaks = NULL, labels = waiver(), limits = NULL, expand = waiver(), oob = censor, na.value = NA_real_, trans = "identity", position = "bottom", sec.axis = waiver(), accuracy = 1, scale = 1, prefix = NULL, suffix = NULL, big.mark = NULL, decimal.mark = NULL, currency = "EUR", trim = TRUE, ... )scale_x_number_de( name = waiver(), breaks = waiver(), minor_breaks = waiver(), guide = waiver(), n.breaks = NULL, labels = waiver(), limits = NULL, expand = waiver(), oob = censor, na.value = NA_real_, trans = "identity", position = "bottom", sec.axis = waiver(), accuracy = 1, scale = 1, prefix = "", suffix = "", big.mark = NULL, decimal.mark = NULL, trim = TRUE, ... ) scale_y_number_de( name = waiver(), breaks = waiver(), minor_breaks = waiver(), guide = waiver(), n.breaks = NULL, labels = waiver(), limits = NULL, expand = waiver(), oob = censor, na.value = NA_real_, trans = "identity", position = "left", sec.axis = waiver(), accuracy = 1, scale = 1, prefix = "", suffix = "", big.mark = NULL, decimal.mark = NULL, trim = TRUE, ... ) scale_x_percent_de( name = waiver(), breaks = waiver(), minor_breaks = waiver(), guide = waiver(), n.breaks = NULL, labels = waiver(), limits = NULL, expand = waiver(), oob = censor, na.value = NA_real_, trans = "identity", position = "bottom", sec.axis = waiver(), accuracy = 1, scale = 100, prefix = NULL, suffix = NULL, big.mark = NULL, decimal.mark = NULL, trim = TRUE, ... ) scale_y_percent_de( name = waiver(), breaks = waiver(), minor_breaks = waiver(), guide = waiver(), n.breaks = NULL, labels = waiver(), limits = NULL, expand = waiver(), oob = censor, na.value = NA_real_, trans = "identity", position = "left", sec.axis = waiver(), accuracy = 1, scale = 100, prefix = NULL, suffix = NULL, big.mark = NULL, decimal.mark = NULL, trim = TRUE, ... ) scale_x_currency_de( name = waiver(), breaks = waiver(), minor_breaks = waiver(), guide = waiver(), n.breaks = NULL, labels = waiver(), limits = NULL, expand = waiver(), oob = censor, na.value = NA_real_, trans = "identity", position = "bottom", sec.axis = waiver(), accuracy = 1, scale = 1, prefix = NULL, suffix = NULL, big.mark = NULL, decimal.mark = NULL, currency = "EUR", trim = TRUE, ... ) scale_y_currency_de( name = waiver(), breaks = waiver(), minor_breaks = waiver(), guide = waiver(), n.breaks = NULL, labels = waiver(), limits = NULL, expand = waiver(), oob = censor, na.value = NA_real_, trans = "identity", position = "bottom", sec.axis = waiver(), accuracy = 1, scale = 1, prefix = NULL, suffix = NULL, big.mark = NULL, decimal.mark = NULL, currency = "EUR", trim = TRUE, ... )
name |
The name of the scale. Used as the axis or legend title. If
|
breaks |
One of:
|
minor_breaks |
One of:
|
guide |
A function used to create a guide or its name. See
|
n.breaks |
An integer guiding the number of major breaks. The algorithm
may choose a slightly different number to ensure nice break labels. Will
only have an effect if |
labels |
One of:
|
limits |
One of:
|
expand |
For position scales, a vector of range expansion constants used to add some
padding around the data to ensure that they are placed some distance
away from the axes. Use the convenience function |
oob |
One of:
|
na.value |
Missing values will be replaced with this value. |
trans |
|
position |
For position scales, The position of the axis.
|
sec.axis |
|
accuracy |
A number to round to. Use (e.g.) Applied to rescaled data. |
scale |
A scaling factor: |
prefix |
Additional text to display before the number. The suffix is
applied to absolute value before |
suffix |
Additional text to display after the number. |
big.mark |
Character used between every 3 digits to separate thousands.
The default ( |
decimal.mark |
The character to be used to indicate the numeric
decimal point. The default ( |
trim |
Logical, if |
... |
Other arguments passed on to |
currency |
currency symbol |
the number ones format axis text in decimal format.
the percent ones format axis text as percentages.
the currency ones format axis text as currencies.
A ggplot2 scale, for use in a +-chained plot construction.
demo_number(c(-1e6, 1e6), scale_name = "number_de") scale_x_number_de() demo_number(c(-1, 1), scale_name = "percent_de") scale_x_percent_de() # not rendered via demo_number(): the euro sign isn't in the check # device's font, so only the (unrendered) scale object is shown scale_x_currency_de()demo_number(c(-1e6, 1e6), scale_name = "number_de") scale_x_number_de() demo_number(c(-1, 1), scale_name = "percent_de") scale_x_percent_de() # not rendered via demo_number(): the euro sign isn't in the check # device's font, so only the (unrendered) scale object is shown scale_x_currency_de()
The scale_xxx_xxx family of functions makes it easy to format axis text in decimal format, as percentages or as currencies.
scale_x_number_dk( name = waiver(), breaks = waiver(), minor_breaks = waiver(), guide = waiver(), n.breaks = NULL, labels = waiver(), limits = NULL, expand = waiver(), oob = censor, na.value = NA_real_, trans = "identity", position = "bottom", sec.axis = waiver(), accuracy = 1, scale = 1, prefix = "", suffix = "", big.mark = NULL, decimal.mark = NULL, trim = TRUE, ... ) scale_x_percent_dk( name = waiver(), breaks = waiver(), minor_breaks = waiver(), guide = waiver(), n.breaks = NULL, labels = waiver(), limits = NULL, expand = waiver(), oob = censor, na.value = NA_real_, trans = "identity", position = "bottom", sec.axis = waiver(), accuracy = 1, scale = 100, prefix = "", suffix = NULL, big.mark = NULL, decimal.mark = NULL, trim = TRUE, ... ) scale_x_currency_dk( name = waiver(), breaks = waiver(), minor_breaks = waiver(), guide = waiver(), n.breaks = NULL, labels = waiver(), limits = NULL, expand = waiver(), oob = censor, na.value = NA_real_, trans = "identity", position = "bottom", sec.axis = waiver(), accuracy = 1, scale = 1, prefix = NULL, suffix = NULL, big.mark = NULL, decimal.mark = NULL, currency = "DKK", trim = TRUE, ... ) scale_y_number_dk( name = waiver(), breaks = waiver(), minor_breaks = waiver(), guide = waiver(), n.breaks = NULL, labels = waiver(), limits = NULL, expand = waiver(), oob = censor, na.value = NA_real_, trans = "identity", position = "left", sec.axis = waiver(), accuracy = 1, scale = 1, prefix = "", suffix = "", big.mark = NULL, decimal.mark = NULL, trim = TRUE, ... ) scale_y_percent_dk( name = waiver(), breaks = waiver(), minor_breaks = waiver(), guide = waiver(), n.breaks = NULL, labels = waiver(), limits = NULL, expand = waiver(), oob = censor, na.value = NA_real_, trans = "identity", position = "left", sec.axis = waiver(), accuracy = 1, scale = 100, prefix = "", suffix = NULL, big.mark = NULL, decimal.mark = NULL, trim = TRUE, ... ) scale_y_currency_dk( name = waiver(), breaks = waiver(), minor_breaks = waiver(), guide = waiver(), n.breaks = NULL, labels = waiver(), limits = NULL, expand = waiver(), oob = censor, na.value = NA_real_, trans = "identity", position = "left", sec.axis = waiver(), accuracy = 1, scale = 1, prefix = NULL, suffix = NULL, big.mark = NULL, decimal.mark = NULL, currency = "DKK", trim = TRUE, ... )scale_x_number_dk( name = waiver(), breaks = waiver(), minor_breaks = waiver(), guide = waiver(), n.breaks = NULL, labels = waiver(), limits = NULL, expand = waiver(), oob = censor, na.value = NA_real_, trans = "identity", position = "bottom", sec.axis = waiver(), accuracy = 1, scale = 1, prefix = "", suffix = "", big.mark = NULL, decimal.mark = NULL, trim = TRUE, ... ) scale_x_percent_dk( name = waiver(), breaks = waiver(), minor_breaks = waiver(), guide = waiver(), n.breaks = NULL, labels = waiver(), limits = NULL, expand = waiver(), oob = censor, na.value = NA_real_, trans = "identity", position = "bottom", sec.axis = waiver(), accuracy = 1, scale = 100, prefix = "", suffix = NULL, big.mark = NULL, decimal.mark = NULL, trim = TRUE, ... ) scale_x_currency_dk( name = waiver(), breaks = waiver(), minor_breaks = waiver(), guide = waiver(), n.breaks = NULL, labels = waiver(), limits = NULL, expand = waiver(), oob = censor, na.value = NA_real_, trans = "identity", position = "bottom", sec.axis = waiver(), accuracy = 1, scale = 1, prefix = NULL, suffix = NULL, big.mark = NULL, decimal.mark = NULL, currency = "DKK", trim = TRUE, ... ) scale_y_number_dk( name = waiver(), breaks = waiver(), minor_breaks = waiver(), guide = waiver(), n.breaks = NULL, labels = waiver(), limits = NULL, expand = waiver(), oob = censor, na.value = NA_real_, trans = "identity", position = "left", sec.axis = waiver(), accuracy = 1, scale = 1, prefix = "", suffix = "", big.mark = NULL, decimal.mark = NULL, trim = TRUE, ... ) scale_y_percent_dk( name = waiver(), breaks = waiver(), minor_breaks = waiver(), guide = waiver(), n.breaks = NULL, labels = waiver(), limits = NULL, expand = waiver(), oob = censor, na.value = NA_real_, trans = "identity", position = "left", sec.axis = waiver(), accuracy = 1, scale = 100, prefix = "", suffix = NULL, big.mark = NULL, decimal.mark = NULL, trim = TRUE, ... ) scale_y_currency_dk( name = waiver(), breaks = waiver(), minor_breaks = waiver(), guide = waiver(), n.breaks = NULL, labels = waiver(), limits = NULL, expand = waiver(), oob = censor, na.value = NA_real_, trans = "identity", position = "left", sec.axis = waiver(), accuracy = 1, scale = 1, prefix = NULL, suffix = NULL, big.mark = NULL, decimal.mark = NULL, currency = "DKK", trim = TRUE, ... )
name |
The name of the scale. Used as the axis or legend title. If
|
breaks |
One of:
|
minor_breaks |
One of:
|
guide |
A function used to create a guide or its name. See
|
n.breaks |
An integer guiding the number of major breaks. The algorithm
may choose a slightly different number to ensure nice break labels. Will
only have an effect if |
labels |
One of:
|
limits |
One of:
|
expand |
For position scales, a vector of range expansion constants used to add some
padding around the data to ensure that they are placed some distance
away from the axes. Use the convenience function |
oob |
One of:
|
na.value |
Missing values will be replaced with this value. |
trans |
|
position |
For position scales, The position of the axis.
|
sec.axis |
|
accuracy |
A number to round to. Use (e.g.) Applied to rescaled data. |
scale |
A scaling factor: |
prefix |
Additional text to display before the number. The suffix is
applied to absolute value before |
suffix |
Additional text to display after the number. |
big.mark |
Character used between every 3 digits to separate thousands.
The default ( |
decimal.mark |
The character to be used to indicate the numeric
decimal point. The default ( |
trim |
Logical, if |
... |
Other arguments passed on to |
currency |
currency symbol |
the number ones format axis text in decimal format.
the percent ones format axis text as percentages.
the currency ones format axis text as currencies.
A ggplot2 scale, for use in a +-chained plot construction.
# not rendered via demo_number(): several locales' group/currency signs # aren't in the check device's font, so only the (unrendered) scale # objects are shown scale_x_number_dk() scale_x_percent_dk() scale_x_currency_dk()# not rendered via demo_number(): several locales' group/currency signs # aren't in the check device's font, so only the (unrendered) scale # objects are shown scale_x_number_dk() scale_x_percent_dk() scale_x_currency_dk()
The scale_xxx_xxx family of functions makes it easy to format axis text in decimal format, as percentages or as currencies.
scale_x_number_es( name = waiver(), breaks = waiver(), minor_breaks = waiver(), guide = waiver(), n.breaks = NULL, labels = waiver(), limits = NULL, expand = waiver(), oob = censor, na.value = NA_real_, trans = "identity", position = "bottom", sec.axis = waiver(), accuracy = 1, scale = 1, prefix = "", suffix = "", big.mark = NULL, decimal.mark = NULL, trim = TRUE, ... ) scale_x_percent_es( name = waiver(), breaks = waiver(), minor_breaks = waiver(), guide = waiver(), n.breaks = NULL, labels = waiver(), limits = NULL, expand = waiver(), oob = censor, na.value = NA_real_, trans = "identity", position = "bottom", sec.axis = waiver(), accuracy = 1, scale = 100, prefix = "", suffix = NULL, big.mark = NULL, decimal.mark = NULL, trim = TRUE, ... ) scale_x_currency_es( name = waiver(), breaks = waiver(), minor_breaks = waiver(), guide = waiver(), n.breaks = NULL, labels = waiver(), limits = NULL, expand = waiver(), oob = censor, na.value = NA_real_, trans = "identity", position = "bottom", sec.axis = waiver(), accuracy = 1, scale = 1, prefix = NULL, suffix = NULL, big.mark = NULL, decimal.mark = NULL, currency = "EUR", trim = TRUE, ... ) scale_y_number_es( name = waiver(), breaks = waiver(), minor_breaks = waiver(), guide = waiver(), n.breaks = NULL, labels = waiver(), limits = NULL, expand = waiver(), oob = censor, na.value = NA_real_, trans = "identity", position = "left", sec.axis = waiver(), accuracy = 1, scale = 1, prefix = "", suffix = "", big.mark = NULL, decimal.mark = NULL, trim = TRUE, ... ) scale_y_percent_es( name = waiver(), breaks = waiver(), minor_breaks = waiver(), guide = waiver(), n.breaks = NULL, labels = waiver(), limits = NULL, expand = waiver(), oob = censor, na.value = NA_real_, trans = "identity", position = "left", sec.axis = waiver(), accuracy = 1, scale = 100, prefix = "", suffix = NULL, big.mark = NULL, decimal.mark = NULL, trim = TRUE, ... ) scale_y_currency_es( name = waiver(), breaks = waiver(), minor_breaks = waiver(), guide = waiver(), n.breaks = NULL, labels = waiver(), limits = NULL, expand = waiver(), oob = censor, na.value = NA_real_, trans = "identity", position = "left", sec.axis = waiver(), accuracy = 1, scale = 1, prefix = NULL, suffix = NULL, big.mark = NULL, decimal.mark = NULL, currency = "EUR", trim = TRUE, ... )scale_x_number_es( name = waiver(), breaks = waiver(), minor_breaks = waiver(), guide = waiver(), n.breaks = NULL, labels = waiver(), limits = NULL, expand = waiver(), oob = censor, na.value = NA_real_, trans = "identity", position = "bottom", sec.axis = waiver(), accuracy = 1, scale = 1, prefix = "", suffix = "", big.mark = NULL, decimal.mark = NULL, trim = TRUE, ... ) scale_x_percent_es( name = waiver(), breaks = waiver(), minor_breaks = waiver(), guide = waiver(), n.breaks = NULL, labels = waiver(), limits = NULL, expand = waiver(), oob = censor, na.value = NA_real_, trans = "identity", position = "bottom", sec.axis = waiver(), accuracy = 1, scale = 100, prefix = "", suffix = NULL, big.mark = NULL, decimal.mark = NULL, trim = TRUE, ... ) scale_x_currency_es( name = waiver(), breaks = waiver(), minor_breaks = waiver(), guide = waiver(), n.breaks = NULL, labels = waiver(), limits = NULL, expand = waiver(), oob = censor, na.value = NA_real_, trans = "identity", position = "bottom", sec.axis = waiver(), accuracy = 1, scale = 1, prefix = NULL, suffix = NULL, big.mark = NULL, decimal.mark = NULL, currency = "EUR", trim = TRUE, ... ) scale_y_number_es( name = waiver(), breaks = waiver(), minor_breaks = waiver(), guide = waiver(), n.breaks = NULL, labels = waiver(), limits = NULL, expand = waiver(), oob = censor, na.value = NA_real_, trans = "identity", position = "left", sec.axis = waiver(), accuracy = 1, scale = 1, prefix = "", suffix = "", big.mark = NULL, decimal.mark = NULL, trim = TRUE, ... ) scale_y_percent_es( name = waiver(), breaks = waiver(), minor_breaks = waiver(), guide = waiver(), n.breaks = NULL, labels = waiver(), limits = NULL, expand = waiver(), oob = censor, na.value = NA_real_, trans = "identity", position = "left", sec.axis = waiver(), accuracy = 1, scale = 100, prefix = "", suffix = NULL, big.mark = NULL, decimal.mark = NULL, trim = TRUE, ... ) scale_y_currency_es( name = waiver(), breaks = waiver(), minor_breaks = waiver(), guide = waiver(), n.breaks = NULL, labels = waiver(), limits = NULL, expand = waiver(), oob = censor, na.value = NA_real_, trans = "identity", position = "left", sec.axis = waiver(), accuracy = 1, scale = 1, prefix = NULL, suffix = NULL, big.mark = NULL, decimal.mark = NULL, currency = "EUR", trim = TRUE, ... )
name |
The name of the scale. Used as the axis or legend title. If
|
breaks |
One of:
|
minor_breaks |
One of:
|
guide |
A function used to create a guide or its name. See
|
n.breaks |
An integer guiding the number of major breaks. The algorithm
may choose a slightly different number to ensure nice break labels. Will
only have an effect if |
labels |
One of:
|
limits |
One of:
|
expand |
For position scales, a vector of range expansion constants used to add some
padding around the data to ensure that they are placed some distance
away from the axes. Use the convenience function |
oob |
One of:
|
na.value |
Missing values will be replaced with this value. |
trans |
|
position |
For position scales, The position of the axis.
|
sec.axis |
|
accuracy |
A number to round to. Use (e.g.) Applied to rescaled data. |
scale |
A scaling factor: |
prefix |
Additional text to display before the number. The suffix is
applied to absolute value before |
suffix |
Additional text to display after the number. |
big.mark |
Character used between every 3 digits to separate thousands.
The default ( |
decimal.mark |
The character to be used to indicate the numeric
decimal point. The default ( |
trim |
Logical, if |
... |
Other arguments passed on to |
currency |
currency symbol |
the number ones format axis text in decimal format.
the percent ones format axis text as percentages.
the currency ones format axis text as currencies.
A ggplot2 scale, for use in a +-chained plot construction.
# not rendered via demo_number(): several locales' group/currency signs # aren't in the check device's font, so only the (unrendered) scale # objects are shown scale_x_number_es() scale_x_percent_es() scale_x_currency_es()# not rendered via demo_number(): several locales' group/currency signs # aren't in the check device's font, so only the (unrendered) scale # objects are shown scale_x_number_es() scale_x_percent_es() scale_x_currency_es()
The scale_xxx_xxx family of functions makes it easy to format axis text in decimal format, as percentages or as currencies.
scale_x_number_fi( name = waiver(), breaks = waiver(), minor_breaks = waiver(), guide = waiver(), n.breaks = NULL, labels = waiver(), limits = NULL, expand = waiver(), oob = censor, na.value = NA_real_, trans = "identity", position = "bottom", sec.axis = waiver(), accuracy = 1, scale = 1, prefix = "", suffix = "", big.mark = NULL, decimal.mark = NULL, trim = TRUE, ... ) scale_x_percent_fi( name = waiver(), breaks = waiver(), minor_breaks = waiver(), guide = waiver(), n.breaks = NULL, labels = waiver(), limits = NULL, expand = waiver(), oob = censor, na.value = NA_real_, trans = "identity", position = "bottom", sec.axis = waiver(), accuracy = 1, scale = 100, prefix = "", suffix = NULL, big.mark = NULL, decimal.mark = NULL, trim = TRUE, ... ) scale_x_currency_fi( name = waiver(), breaks = waiver(), minor_breaks = waiver(), guide = waiver(), n.breaks = NULL, labels = waiver(), limits = NULL, expand = waiver(), oob = censor, na.value = NA_real_, trans = "identity", position = "bottom", sec.axis = waiver(), accuracy = 1, scale = 1, prefix = NULL, suffix = NULL, big.mark = NULL, decimal.mark = NULL, currency = "EUR", trim = TRUE, ... ) scale_y_number_fi( name = waiver(), breaks = waiver(), minor_breaks = waiver(), guide = waiver(), n.breaks = NULL, labels = waiver(), limits = NULL, expand = waiver(), oob = censor, na.value = NA_real_, trans = "identity", position = "left", sec.axis = waiver(), accuracy = 1, scale = 1, prefix = "", suffix = "", big.mark = NULL, decimal.mark = NULL, trim = TRUE, ... ) scale_y_percent_fi( name = waiver(), breaks = waiver(), minor_breaks = waiver(), guide = waiver(), n.breaks = NULL, labels = waiver(), limits = NULL, expand = waiver(), oob = censor, na.value = NA_real_, trans = "identity", position = "left", sec.axis = waiver(), accuracy = 1, scale = 100, prefix = "", suffix = NULL, big.mark = NULL, decimal.mark = NULL, trim = TRUE, ... ) scale_y_currency_fi( name = waiver(), breaks = waiver(), minor_breaks = waiver(), guide = waiver(), n.breaks = NULL, labels = waiver(), limits = NULL, expand = waiver(), oob = censor, na.value = NA_real_, trans = "identity", position = "left", sec.axis = waiver(), accuracy = 1, scale = 1, prefix = NULL, suffix = NULL, big.mark = NULL, decimal.mark = NULL, currency = "EUR", trim = TRUE, ... )scale_x_number_fi( name = waiver(), breaks = waiver(), minor_breaks = waiver(), guide = waiver(), n.breaks = NULL, labels = waiver(), limits = NULL, expand = waiver(), oob = censor, na.value = NA_real_, trans = "identity", position = "bottom", sec.axis = waiver(), accuracy = 1, scale = 1, prefix = "", suffix = "", big.mark = NULL, decimal.mark = NULL, trim = TRUE, ... ) scale_x_percent_fi( name = waiver(), breaks = waiver(), minor_breaks = waiver(), guide = waiver(), n.breaks = NULL, labels = waiver(), limits = NULL, expand = waiver(), oob = censor, na.value = NA_real_, trans = "identity", position = "bottom", sec.axis = waiver(), accuracy = 1, scale = 100, prefix = "", suffix = NULL, big.mark = NULL, decimal.mark = NULL, trim = TRUE, ... ) scale_x_currency_fi( name = waiver(), breaks = waiver(), minor_breaks = waiver(), guide = waiver(), n.breaks = NULL, labels = waiver(), limits = NULL, expand = waiver(), oob = censor, na.value = NA_real_, trans = "identity", position = "bottom", sec.axis = waiver(), accuracy = 1, scale = 1, prefix = NULL, suffix = NULL, big.mark = NULL, decimal.mark = NULL, currency = "EUR", trim = TRUE, ... ) scale_y_number_fi( name = waiver(), breaks = waiver(), minor_breaks = waiver(), guide = waiver(), n.breaks = NULL, labels = waiver(), limits = NULL, expand = waiver(), oob = censor, na.value = NA_real_, trans = "identity", position = "left", sec.axis = waiver(), accuracy = 1, scale = 1, prefix = "", suffix = "", big.mark = NULL, decimal.mark = NULL, trim = TRUE, ... ) scale_y_percent_fi( name = waiver(), breaks = waiver(), minor_breaks = waiver(), guide = waiver(), n.breaks = NULL, labels = waiver(), limits = NULL, expand = waiver(), oob = censor, na.value = NA_real_, trans = "identity", position = "left", sec.axis = waiver(), accuracy = 1, scale = 100, prefix = "", suffix = NULL, big.mark = NULL, decimal.mark = NULL, trim = TRUE, ... ) scale_y_currency_fi( name = waiver(), breaks = waiver(), minor_breaks = waiver(), guide = waiver(), n.breaks = NULL, labels = waiver(), limits = NULL, expand = waiver(), oob = censor, na.value = NA_real_, trans = "identity", position = "left", sec.axis = waiver(), accuracy = 1, scale = 1, prefix = NULL, suffix = NULL, big.mark = NULL, decimal.mark = NULL, currency = "EUR", trim = TRUE, ... )
name |
The name of the scale. Used as the axis or legend title. If
|
breaks |
One of:
|
minor_breaks |
One of:
|
guide |
A function used to create a guide or its name. See
|
n.breaks |
An integer guiding the number of major breaks. The algorithm
may choose a slightly different number to ensure nice break labels. Will
only have an effect if |
labels |
One of:
|
limits |
One of:
|
expand |
For position scales, a vector of range expansion constants used to add some
padding around the data to ensure that they are placed some distance
away from the axes. Use the convenience function |
oob |
One of:
|
na.value |
Missing values will be replaced with this value. |
trans |
|
position |
For position scales, The position of the axis.
|
sec.axis |
|
accuracy |
A number to round to. Use (e.g.) Applied to rescaled data. |
scale |
A scaling factor: |
prefix |
Additional text to display before the number. The suffix is
applied to absolute value before |
suffix |
Additional text to display after the number. |
big.mark |
Character used between every 3 digits to separate thousands.
The default ( |
decimal.mark |
The character to be used to indicate the numeric
decimal point. The default ( |
trim |
Logical, if |
... |
Other arguments passed on to |
currency |
currency symbol |
the number ones format axis text in decimal format.
the percent ones format axis text as percentages.
the currency ones format axis text as currencies.
A ggplot2 scale, for use in a +-chained plot construction.
# not rendered via demo_number(): several locales' group/currency signs # aren't in the check device's font, so only the (unrendered) scale # objects are shown scale_x_number_fi() scale_x_percent_fi() scale_x_currency_fi()# not rendered via demo_number(): several locales' group/currency signs # aren't in the check device's font, so only the (unrendered) scale # objects are shown scale_x_number_fi() scale_x_percent_fi() scale_x_currency_fi()
The scale_xxx_xxx family of functions makes it easy to format axis text in decimal format, as percentages or as currencies.
scale_x_number_fr( name = waiver(), breaks = waiver(), minor_breaks = waiver(), guide = waiver(), n.breaks = NULL, labels = waiver(), limits = NULL, expand = waiver(), oob = censor, na.value = NA_real_, trans = "identity", position = "bottom", sec.axis = waiver(), accuracy = 1, scale = 1, prefix = "", suffix = "", big.mark = NULL, decimal.mark = NULL, trim = TRUE, ... ) scale_x_percent_fr( name = waiver(), breaks = waiver(), minor_breaks = waiver(), guide = waiver(), n.breaks = NULL, labels = waiver(), limits = NULL, expand = waiver(), oob = censor, na.value = NA_real_, trans = "identity", position = "bottom", sec.axis = waiver(), accuracy = 1, scale = 100, prefix = "", suffix = NULL, big.mark = NULL, decimal.mark = NULL, trim = TRUE, ... ) scale_x_currency_fr( name = waiver(), breaks = waiver(), minor_breaks = waiver(), guide = waiver(), n.breaks = NULL, labels = waiver(), limits = NULL, expand = waiver(), oob = censor, na.value = NA_real_, trans = "identity", position = "bottom", sec.axis = waiver(), accuracy = 1, scale = 1, prefix = NULL, suffix = NULL, big.mark = NULL, decimal.mark = NULL, currency = "EUR", trim = TRUE, ... ) scale_y_number_fr( name = waiver(), breaks = waiver(), minor_breaks = waiver(), guide = waiver(), n.breaks = NULL, labels = waiver(), limits = NULL, expand = waiver(), oob = censor, na.value = NA_real_, trans = "identity", position = "left", sec.axis = waiver(), accuracy = 1, scale = 1, prefix = "", suffix = "", big.mark = NULL, decimal.mark = NULL, trim = TRUE, ... ) scale_y_percent_fr( name = waiver(), breaks = waiver(), minor_breaks = waiver(), guide = waiver(), n.breaks = NULL, labels = waiver(), limits = NULL, expand = waiver(), oob = censor, na.value = NA_real_, trans = "identity", position = "left", sec.axis = waiver(), accuracy = 1, scale = 100, prefix = "", suffix = NULL, big.mark = NULL, decimal.mark = NULL, trim = TRUE, ... ) scale_y_currency_fr( name = waiver(), breaks = waiver(), minor_breaks = waiver(), guide = waiver(), n.breaks = NULL, labels = waiver(), limits = NULL, expand = waiver(), oob = censor, na.value = NA_real_, trans = "identity", position = "left", sec.axis = waiver(), accuracy = 1, scale = 1, prefix = NULL, suffix = NULL, big.mark = NULL, decimal.mark = NULL, currency = "EUR", trim = TRUE, ... )scale_x_number_fr( name = waiver(), breaks = waiver(), minor_breaks = waiver(), guide = waiver(), n.breaks = NULL, labels = waiver(), limits = NULL, expand = waiver(), oob = censor, na.value = NA_real_, trans = "identity", position = "bottom", sec.axis = waiver(), accuracy = 1, scale = 1, prefix = "", suffix = "", big.mark = NULL, decimal.mark = NULL, trim = TRUE, ... ) scale_x_percent_fr( name = waiver(), breaks = waiver(), minor_breaks = waiver(), guide = waiver(), n.breaks = NULL, labels = waiver(), limits = NULL, expand = waiver(), oob = censor, na.value = NA_real_, trans = "identity", position = "bottom", sec.axis = waiver(), accuracy = 1, scale = 100, prefix = "", suffix = NULL, big.mark = NULL, decimal.mark = NULL, trim = TRUE, ... ) scale_x_currency_fr( name = waiver(), breaks = waiver(), minor_breaks = waiver(), guide = waiver(), n.breaks = NULL, labels = waiver(), limits = NULL, expand = waiver(), oob = censor, na.value = NA_real_, trans = "identity", position = "bottom", sec.axis = waiver(), accuracy = 1, scale = 1, prefix = NULL, suffix = NULL, big.mark = NULL, decimal.mark = NULL, currency = "EUR", trim = TRUE, ... ) scale_y_number_fr( name = waiver(), breaks = waiver(), minor_breaks = waiver(), guide = waiver(), n.breaks = NULL, labels = waiver(), limits = NULL, expand = waiver(), oob = censor, na.value = NA_real_, trans = "identity", position = "left", sec.axis = waiver(), accuracy = 1, scale = 1, prefix = "", suffix = "", big.mark = NULL, decimal.mark = NULL, trim = TRUE, ... ) scale_y_percent_fr( name = waiver(), breaks = waiver(), minor_breaks = waiver(), guide = waiver(), n.breaks = NULL, labels = waiver(), limits = NULL, expand = waiver(), oob = censor, na.value = NA_real_, trans = "identity", position = "left", sec.axis = waiver(), accuracy = 1, scale = 100, prefix = "", suffix = NULL, big.mark = NULL, decimal.mark = NULL, trim = TRUE, ... ) scale_y_currency_fr( name = waiver(), breaks = waiver(), minor_breaks = waiver(), guide = waiver(), n.breaks = NULL, labels = waiver(), limits = NULL, expand = waiver(), oob = censor, na.value = NA_real_, trans = "identity", position = "left", sec.axis = waiver(), accuracy = 1, scale = 1, prefix = NULL, suffix = NULL, big.mark = NULL, decimal.mark = NULL, currency = "EUR", trim = TRUE, ... )
name |
The name of the scale. Used as the axis or legend title. If
|
breaks |
One of:
|
minor_breaks |
One of:
|
guide |
A function used to create a guide or its name. See
|
n.breaks |
An integer guiding the number of major breaks. The algorithm
may choose a slightly different number to ensure nice break labels. Will
only have an effect if |
labels |
One of:
|
limits |
One of:
|
expand |
For position scales, a vector of range expansion constants used to add some
padding around the data to ensure that they are placed some distance
away from the axes. Use the convenience function |
oob |
One of:
|
na.value |
Missing values will be replaced with this value. |
trans |
|
position |
For position scales, The position of the axis.
|
sec.axis |
|
accuracy |
A number to round to. Use (e.g.) Applied to rescaled data. |
scale |
A scaling factor: |
prefix |
Additional text to display before the number. The suffix is
applied to absolute value before |
suffix |
Additional text to display after the number. |
big.mark |
Character used between every 3 digits to separate thousands.
The default ( |
decimal.mark |
The character to be used to indicate the numeric
decimal point. The default ( |
trim |
Logical, if |
... |
Other arguments passed on to |
currency |
currency symbol |
the number ones format axis text in decimal format.
the percent ones format axis text as percentages.
the currency ones format axis text as currencies.
A ggplot2 scale, for use in a +-chained plot construction.
# not rendered via demo_number(): several locales' group/currency signs # aren't in the check device's font, so only the (unrendered) scale # objects are shown scale_x_number_fr() scale_x_percent_fr() scale_x_currency_fr()# not rendered via demo_number(): several locales' group/currency signs # aren't in the check device's font, so only the (unrendered) scale # objects are shown scale_x_number_fr() scale_x_percent_fr() scale_x_currency_fr()
The scale_xxx_xxx family of functions makes it easy to format axis text in decimal format, as percentages or as currencies.
scale_x_number_gb( name = waiver(), breaks = waiver(), minor_breaks = waiver(), guide = waiver(), n.breaks = NULL, labels = waiver(), limits = NULL, expand = waiver(), oob = censor, na.value = NA_real_, trans = "identity", position = "bottom", sec.axis = waiver(), accuracy = 1, scale = 1, prefix = "", suffix = "", big.mark = NULL, decimal.mark = NULL, trim = TRUE, ... ) scale_x_percent_gb( name = waiver(), breaks = waiver(), minor_breaks = waiver(), guide = waiver(), n.breaks = NULL, labels = waiver(), limits = NULL, expand = waiver(), oob = censor, na.value = NA_real_, trans = "identity", position = "bottom", sec.axis = waiver(), accuracy = 1, scale = 100, prefix = "", suffix = NULL, big.mark = NULL, decimal.mark = NULL, trim = TRUE, ... ) scale_x_currency_gb( name = waiver(), breaks = waiver(), minor_breaks = waiver(), guide = waiver(), n.breaks = NULL, labels = waiver(), limits = NULL, expand = waiver(), oob = censor, na.value = NA_real_, trans = "identity", position = "bottom", sec.axis = waiver(), accuracy = 1, scale = 1, prefix = NULL, suffix = NULL, big.mark = NULL, decimal.mark = NULL, currency = "GBP", trim = TRUE, ... ) scale_y_number_gb( name = waiver(), breaks = waiver(), minor_breaks = waiver(), guide = waiver(), n.breaks = NULL, labels = waiver(), limits = NULL, expand = waiver(), oob = censor, na.value = NA_real_, trans = "identity", position = "left", sec.axis = waiver(), accuracy = 1, scale = 1, prefix = "", suffix = "", big.mark = NULL, decimal.mark = NULL, trim = TRUE, ... ) scale_y_percent_gb( name = waiver(), breaks = waiver(), minor_breaks = waiver(), guide = waiver(), n.breaks = NULL, labels = waiver(), limits = NULL, expand = waiver(), oob = censor, na.value = NA_real_, trans = "identity", position = "left", sec.axis = waiver(), accuracy = 1, scale = 100, prefix = "", suffix = NULL, big.mark = NULL, decimal.mark = NULL, trim = TRUE, ... ) scale_y_currency_gb( name = waiver(), breaks = waiver(), minor_breaks = waiver(), guide = waiver(), n.breaks = NULL, labels = waiver(), limits = NULL, expand = waiver(), oob = censor, na.value = NA_real_, trans = "identity", position = "left", sec.axis = waiver(), accuracy = 1, scale = 1, prefix = NULL, suffix = NULL, big.mark = NULL, decimal.mark = NULL, currency = "GBP", trim = TRUE, ... )scale_x_number_gb( name = waiver(), breaks = waiver(), minor_breaks = waiver(), guide = waiver(), n.breaks = NULL, labels = waiver(), limits = NULL, expand = waiver(), oob = censor, na.value = NA_real_, trans = "identity", position = "bottom", sec.axis = waiver(), accuracy = 1, scale = 1, prefix = "", suffix = "", big.mark = NULL, decimal.mark = NULL, trim = TRUE, ... ) scale_x_percent_gb( name = waiver(), breaks = waiver(), minor_breaks = waiver(), guide = waiver(), n.breaks = NULL, labels = waiver(), limits = NULL, expand = waiver(), oob = censor, na.value = NA_real_, trans = "identity", position = "bottom", sec.axis = waiver(), accuracy = 1, scale = 100, prefix = "", suffix = NULL, big.mark = NULL, decimal.mark = NULL, trim = TRUE, ... ) scale_x_currency_gb( name = waiver(), breaks = waiver(), minor_breaks = waiver(), guide = waiver(), n.breaks = NULL, labels = waiver(), limits = NULL, expand = waiver(), oob = censor, na.value = NA_real_, trans = "identity", position = "bottom", sec.axis = waiver(), accuracy = 1, scale = 1, prefix = NULL, suffix = NULL, big.mark = NULL, decimal.mark = NULL, currency = "GBP", trim = TRUE, ... ) scale_y_number_gb( name = waiver(), breaks = waiver(), minor_breaks = waiver(), guide = waiver(), n.breaks = NULL, labels = waiver(), limits = NULL, expand = waiver(), oob = censor, na.value = NA_real_, trans = "identity", position = "left", sec.axis = waiver(), accuracy = 1, scale = 1, prefix = "", suffix = "", big.mark = NULL, decimal.mark = NULL, trim = TRUE, ... ) scale_y_percent_gb( name = waiver(), breaks = waiver(), minor_breaks = waiver(), guide = waiver(), n.breaks = NULL, labels = waiver(), limits = NULL, expand = waiver(), oob = censor, na.value = NA_real_, trans = "identity", position = "left", sec.axis = waiver(), accuracy = 1, scale = 100, prefix = "", suffix = NULL, big.mark = NULL, decimal.mark = NULL, trim = TRUE, ... ) scale_y_currency_gb( name = waiver(), breaks = waiver(), minor_breaks = waiver(), guide = waiver(), n.breaks = NULL, labels = waiver(), limits = NULL, expand = waiver(), oob = censor, na.value = NA_real_, trans = "identity", position = "left", sec.axis = waiver(), accuracy = 1, scale = 1, prefix = NULL, suffix = NULL, big.mark = NULL, decimal.mark = NULL, currency = "GBP", trim = TRUE, ... )
name |
The name of the scale. Used as the axis or legend title. If
|
breaks |
One of:
|
minor_breaks |
One of:
|
guide |
A function used to create a guide or its name. See
|
n.breaks |
An integer guiding the number of major breaks. The algorithm
may choose a slightly different number to ensure nice break labels. Will
only have an effect if |
labels |
One of:
|
limits |
One of:
|
expand |
For position scales, a vector of range expansion constants used to add some
padding around the data to ensure that they are placed some distance
away from the axes. Use the convenience function |
oob |
One of:
|
na.value |
Missing values will be replaced with this value. |
trans |
|
position |
For position scales, The position of the axis.
|
sec.axis |
|
accuracy |
A number to round to. Use (e.g.) Applied to rescaled data. |
scale |
A scaling factor: |
prefix |
Additional text to display before the number. The suffix is
applied to absolute value before |
suffix |
Additional text to display after the number. |
big.mark |
Character used between every 3 digits to separate thousands.
The default ( |
decimal.mark |
The character to be used to indicate the numeric
decimal point. The default ( |
trim |
Logical, if |
... |
Other arguments passed on to |
currency |
currency symbol |
the number ones format axis text in decimal format.
the percent ones format axis text as percentages.
the currency ones format axis text as currencies.
A ggplot2 scale, for use in a +-chained plot construction.
# not rendered via demo_number(): several locales' group/currency signs # aren't in the check device's font, so only the (unrendered) scale # objects are shown scale_x_number_gb() scale_x_percent_gb() scale_x_currency_gb()# not rendered via demo_number(): several locales' group/currency signs # aren't in the check device's font, so only the (unrendered) scale # objects are shown scale_x_number_gb() scale_x_percent_gb() scale_x_currency_gb()
The scale_xxx_xxx family of functions makes it easy to format axis text in decimal format, as percentages or as currencies.
scale_x_number_id( name = waiver(), breaks = waiver(), minor_breaks = waiver(), guide = waiver(), n.breaks = NULL, labels = waiver(), limits = NULL, expand = waiver(), oob = censor, na.value = NA_real_, trans = "identity", position = "bottom", sec.axis = waiver(), accuracy = 1, scale = 1, prefix = "", suffix = "", big.mark = NULL, decimal.mark = NULL, trim = TRUE, ... ) scale_x_percent_id( name = waiver(), breaks = waiver(), minor_breaks = waiver(), guide = waiver(), n.breaks = NULL, labels = waiver(), limits = NULL, expand = waiver(), oob = censor, na.value = NA_real_, trans = "identity", position = "bottom", sec.axis = waiver(), accuracy = 1, scale = 100, prefix = "", suffix = NULL, big.mark = NULL, decimal.mark = NULL, trim = TRUE, ... ) scale_x_currency_id( name = waiver(), breaks = waiver(), minor_breaks = waiver(), guide = waiver(), n.breaks = NULL, labels = waiver(), limits = NULL, expand = waiver(), oob = censor, na.value = NA_real_, trans = "identity", position = "bottom", sec.axis = waiver(), accuracy = 1, scale = 1, prefix = NULL, suffix = NULL, big.mark = NULL, decimal.mark = NULL, currency = "IDR", trim = TRUE, ... ) scale_y_number_id( name = waiver(), breaks = waiver(), minor_breaks = waiver(), guide = waiver(), n.breaks = NULL, labels = waiver(), limits = NULL, expand = waiver(), oob = censor, na.value = NA_real_, trans = "identity", position = "left", sec.axis = waiver(), accuracy = 1, scale = 1, prefix = "", suffix = "", big.mark = NULL, decimal.mark = NULL, trim = TRUE, ... ) scale_y_percent_id( name = waiver(), breaks = waiver(), minor_breaks = waiver(), guide = waiver(), n.breaks = NULL, labels = waiver(), limits = NULL, expand = waiver(), oob = censor, na.value = NA_real_, trans = "identity", position = "left", sec.axis = waiver(), accuracy = 1, scale = 100, prefix = "", suffix = NULL, big.mark = NULL, decimal.mark = NULL, trim = TRUE, ... ) scale_y_currency_id( name = waiver(), breaks = waiver(), minor_breaks = waiver(), guide = waiver(), n.breaks = NULL, labels = waiver(), limits = NULL, expand = waiver(), oob = censor, na.value = NA_real_, trans = "identity", position = "left", sec.axis = waiver(), accuracy = 1, scale = 1, prefix = NULL, suffix = NULL, big.mark = NULL, decimal.mark = NULL, currency = "IDR", trim = TRUE, ... )scale_x_number_id( name = waiver(), breaks = waiver(), minor_breaks = waiver(), guide = waiver(), n.breaks = NULL, labels = waiver(), limits = NULL, expand = waiver(), oob = censor, na.value = NA_real_, trans = "identity", position = "bottom", sec.axis = waiver(), accuracy = 1, scale = 1, prefix = "", suffix = "", big.mark = NULL, decimal.mark = NULL, trim = TRUE, ... ) scale_x_percent_id( name = waiver(), breaks = waiver(), minor_breaks = waiver(), guide = waiver(), n.breaks = NULL, labels = waiver(), limits = NULL, expand = waiver(), oob = censor, na.value = NA_real_, trans = "identity", position = "bottom", sec.axis = waiver(), accuracy = 1, scale = 100, prefix = "", suffix = NULL, big.mark = NULL, decimal.mark = NULL, trim = TRUE, ... ) scale_x_currency_id( name = waiver(), breaks = waiver(), minor_breaks = waiver(), guide = waiver(), n.breaks = NULL, labels = waiver(), limits = NULL, expand = waiver(), oob = censor, na.value = NA_real_, trans = "identity", position = "bottom", sec.axis = waiver(), accuracy = 1, scale = 1, prefix = NULL, suffix = NULL, big.mark = NULL, decimal.mark = NULL, currency = "IDR", trim = TRUE, ... ) scale_y_number_id( name = waiver(), breaks = waiver(), minor_breaks = waiver(), guide = waiver(), n.breaks = NULL, labels = waiver(), limits = NULL, expand = waiver(), oob = censor, na.value = NA_real_, trans = "identity", position = "left", sec.axis = waiver(), accuracy = 1, scale = 1, prefix = "", suffix = "", big.mark = NULL, decimal.mark = NULL, trim = TRUE, ... ) scale_y_percent_id( name = waiver(), breaks = waiver(), minor_breaks = waiver(), guide = waiver(), n.breaks = NULL, labels = waiver(), limits = NULL, expand = waiver(), oob = censor, na.value = NA_real_, trans = "identity", position = "left", sec.axis = waiver(), accuracy = 1, scale = 100, prefix = "", suffix = NULL, big.mark = NULL, decimal.mark = NULL, trim = TRUE, ... ) scale_y_currency_id( name = waiver(), breaks = waiver(), minor_breaks = waiver(), guide = waiver(), n.breaks = NULL, labels = waiver(), limits = NULL, expand = waiver(), oob = censor, na.value = NA_real_, trans = "identity", position = "left", sec.axis = waiver(), accuracy = 1, scale = 1, prefix = NULL, suffix = NULL, big.mark = NULL, decimal.mark = NULL, currency = "IDR", trim = TRUE, ... )
name |
The name of the scale. Used as the axis or legend title. If
|
breaks |
One of:
|
minor_breaks |
One of:
|
guide |
A function used to create a guide or its name. See
|
n.breaks |
An integer guiding the number of major breaks. The algorithm
may choose a slightly different number to ensure nice break labels. Will
only have an effect if |
labels |
One of:
|
limits |
One of:
|
expand |
For position scales, a vector of range expansion constants used to add some
padding around the data to ensure that they are placed some distance
away from the axes. Use the convenience function |
oob |
One of:
|
na.value |
Missing values will be replaced with this value. |
trans |
|
position |
For position scales, The position of the axis.
|
sec.axis |
|
accuracy |
A number to round to. Use (e.g.) Applied to rescaled data. |
scale |
A scaling factor: |
prefix |
Additional text to display before the number. The suffix is
applied to absolute value before |
suffix |
Additional text to display after the number. |
big.mark |
Character used between every 3 digits to separate thousands.
The default ( |
decimal.mark |
The character to be used to indicate the numeric
decimal point. The default ( |
trim |
Logical, if |
... |
Other arguments passed on to |
currency |
currency symbol |
the number ones format axis text in decimal format.
the percent ones format axis text as percentages.
the currency ones format axis text as currencies.
A ggplot2 scale, for use in a +-chained plot construction.
# not rendered via demo_number(): several locales' group/currency signs # aren't in the check device's font, so only the (unrendered) scale # objects are shown scale_x_number_id() scale_x_percent_id() scale_x_currency_id()# not rendered via demo_number(): several locales' group/currency signs # aren't in the check device's font, so only the (unrendered) scale # objects are shown scale_x_number_id() scale_x_percent_id() scale_x_currency_id()
The scale_xxx_xxx family of functions makes it easy to format axis text in decimal format, as percentages or as currencies.
scale_x_number_ie( name = waiver(), breaks = waiver(), minor_breaks = waiver(), guide = waiver(), n.breaks = NULL, labels = waiver(), limits = NULL, expand = waiver(), oob = censor, na.value = NA_real_, trans = "identity", position = "bottom", sec.axis = waiver(), accuracy = 1, scale = 1, prefix = "", suffix = "", big.mark = NULL, decimal.mark = NULL, trim = TRUE, ... ) scale_x_percent_ie( name = waiver(), breaks = waiver(), minor_breaks = waiver(), guide = waiver(), n.breaks = NULL, labels = waiver(), limits = NULL, expand = waiver(), oob = censor, na.value = NA_real_, trans = "identity", position = "bottom", sec.axis = waiver(), accuracy = 1, scale = 100, prefix = "", suffix = NULL, big.mark = NULL, decimal.mark = NULL, trim = TRUE, ... ) scale_x_currency_ie( name = waiver(), breaks = waiver(), minor_breaks = waiver(), guide = waiver(), n.breaks = NULL, labels = waiver(), limits = NULL, expand = waiver(), oob = censor, na.value = NA_real_, trans = "identity", position = "bottom", sec.axis = waiver(), accuracy = 1, scale = 1, prefix = NULL, suffix = NULL, big.mark = NULL, decimal.mark = NULL, currency = "EUR", trim = TRUE, ... ) scale_y_number_ie( name = waiver(), breaks = waiver(), minor_breaks = waiver(), guide = waiver(), n.breaks = NULL, labels = waiver(), limits = NULL, expand = waiver(), oob = censor, na.value = NA_real_, trans = "identity", position = "left", sec.axis = waiver(), accuracy = 1, scale = 1, prefix = "", suffix = "", big.mark = NULL, decimal.mark = NULL, trim = TRUE, ... ) scale_y_percent_ie( name = waiver(), breaks = waiver(), minor_breaks = waiver(), guide = waiver(), n.breaks = NULL, labels = waiver(), limits = NULL, expand = waiver(), oob = censor, na.value = NA_real_, trans = "identity", position = "left", sec.axis = waiver(), accuracy = 1, scale = 100, prefix = "", suffix = NULL, big.mark = NULL, decimal.mark = NULL, trim = TRUE, ... ) scale_y_currency_ie( name = waiver(), breaks = waiver(), minor_breaks = waiver(), guide = waiver(), n.breaks = NULL, labels = waiver(), limits = NULL, expand = waiver(), oob = censor, na.value = NA_real_, trans = "identity", position = "left", sec.axis = waiver(), accuracy = 1, scale = 1, prefix = NULL, suffix = NULL, big.mark = NULL, decimal.mark = NULL, currency = "EUR", trim = TRUE, ... )scale_x_number_ie( name = waiver(), breaks = waiver(), minor_breaks = waiver(), guide = waiver(), n.breaks = NULL, labels = waiver(), limits = NULL, expand = waiver(), oob = censor, na.value = NA_real_, trans = "identity", position = "bottom", sec.axis = waiver(), accuracy = 1, scale = 1, prefix = "", suffix = "", big.mark = NULL, decimal.mark = NULL, trim = TRUE, ... ) scale_x_percent_ie( name = waiver(), breaks = waiver(), minor_breaks = waiver(), guide = waiver(), n.breaks = NULL, labels = waiver(), limits = NULL, expand = waiver(), oob = censor, na.value = NA_real_, trans = "identity", position = "bottom", sec.axis = waiver(), accuracy = 1, scale = 100, prefix = "", suffix = NULL, big.mark = NULL, decimal.mark = NULL, trim = TRUE, ... ) scale_x_currency_ie( name = waiver(), breaks = waiver(), minor_breaks = waiver(), guide = waiver(), n.breaks = NULL, labels = waiver(), limits = NULL, expand = waiver(), oob = censor, na.value = NA_real_, trans = "identity", position = "bottom", sec.axis = waiver(), accuracy = 1, scale = 1, prefix = NULL, suffix = NULL, big.mark = NULL, decimal.mark = NULL, currency = "EUR", trim = TRUE, ... ) scale_y_number_ie( name = waiver(), breaks = waiver(), minor_breaks = waiver(), guide = waiver(), n.breaks = NULL, labels = waiver(), limits = NULL, expand = waiver(), oob = censor, na.value = NA_real_, trans = "identity", position = "left", sec.axis = waiver(), accuracy = 1, scale = 1, prefix = "", suffix = "", big.mark = NULL, decimal.mark = NULL, trim = TRUE, ... ) scale_y_percent_ie( name = waiver(), breaks = waiver(), minor_breaks = waiver(), guide = waiver(), n.breaks = NULL, labels = waiver(), limits = NULL, expand = waiver(), oob = censor, na.value = NA_real_, trans = "identity", position = "left", sec.axis = waiver(), accuracy = 1, scale = 100, prefix = "", suffix = NULL, big.mark = NULL, decimal.mark = NULL, trim = TRUE, ... ) scale_y_currency_ie( name = waiver(), breaks = waiver(), minor_breaks = waiver(), guide = waiver(), n.breaks = NULL, labels = waiver(), limits = NULL, expand = waiver(), oob = censor, na.value = NA_real_, trans = "identity", position = "left", sec.axis = waiver(), accuracy = 1, scale = 1, prefix = NULL, suffix = NULL, big.mark = NULL, decimal.mark = NULL, currency = "EUR", trim = TRUE, ... )
name |
The name of the scale. Used as the axis or legend title. If
|
breaks |
One of:
|
minor_breaks |
One of:
|
guide |
A function used to create a guide or its name. See
|
n.breaks |
An integer guiding the number of major breaks. The algorithm
may choose a slightly different number to ensure nice break labels. Will
only have an effect if |
labels |
One of:
|
limits |
One of:
|
expand |
For position scales, a vector of range expansion constants used to add some
padding around the data to ensure that they are placed some distance
away from the axes. Use the convenience function |
oob |
One of:
|
na.value |
Missing values will be replaced with this value. |
trans |
|
position |
For position scales, The position of the axis.
|
sec.axis |
|
accuracy |
A number to round to. Use (e.g.) Applied to rescaled data. |
scale |
A scaling factor: |
prefix |
Additional text to display before the number. The suffix is
applied to absolute value before |
suffix |
Additional text to display after the number. |
big.mark |
Character used between every 3 digits to separate thousands.
The default ( |
decimal.mark |
The character to be used to indicate the numeric
decimal point. The default ( |
trim |
Logical, if |
... |
Other arguments passed on to |
currency |
currency symbol |
the number ones format axis text in decimal format.
the percent ones format axis text as percentages.
the currency ones format axis text as currencies.
A ggplot2 scale, for use in a +-chained plot construction.
# not rendered via demo_number(): several locales' group/currency signs # aren't in the check device's font, so only the (unrendered) scale # objects are shown scale_x_number_ie() scale_x_percent_ie() scale_x_currency_ie()# not rendered via demo_number(): several locales' group/currency signs # aren't in the check device's font, so only the (unrendered) scale # objects are shown scale_x_number_ie() scale_x_percent_ie() scale_x_currency_ie()
The scale_xxx_xxx family of functions makes it easy to format axis text in decimal format, as percentages or as currencies.
scale_x_number_it( name = waiver(), breaks = waiver(), minor_breaks = waiver(), guide = waiver(), n.breaks = NULL, labels = waiver(), limits = NULL, expand = waiver(), oob = censor, na.value = NA_real_, trans = "identity", position = "bottom", sec.axis = waiver(), accuracy = 1, scale = 1, prefix = "", suffix = "", big.mark = NULL, decimal.mark = NULL, trim = TRUE, ... ) scale_x_percent_it( name = waiver(), breaks = waiver(), minor_breaks = waiver(), guide = waiver(), n.breaks = NULL, labels = waiver(), limits = NULL, expand = waiver(), oob = censor, na.value = NA_real_, trans = "identity", position = "bottom", sec.axis = waiver(), accuracy = 1, scale = 100, prefix = "", suffix = NULL, big.mark = NULL, decimal.mark = NULL, trim = TRUE, ... ) scale_x_currency_it( name = waiver(), breaks = waiver(), minor_breaks = waiver(), guide = waiver(), n.breaks = NULL, labels = waiver(), limits = NULL, expand = waiver(), oob = censor, na.value = NA_real_, trans = "identity", position = "bottom", sec.axis = waiver(), accuracy = 1, scale = 1, prefix = NULL, suffix = NULL, big.mark = NULL, decimal.mark = NULL, currency = "EUR", trim = TRUE, ... ) scale_y_number_it( name = waiver(), breaks = waiver(), minor_breaks = waiver(), guide = waiver(), n.breaks = NULL, labels = waiver(), limits = NULL, expand = waiver(), oob = censor, na.value = NA_real_, trans = "identity", position = "left", sec.axis = waiver(), accuracy = 1, scale = 1, prefix = "", suffix = "", big.mark = NULL, decimal.mark = NULL, trim = TRUE, ... ) scale_y_percent_it( name = waiver(), breaks = waiver(), minor_breaks = waiver(), guide = waiver(), n.breaks = NULL, labels = waiver(), limits = NULL, expand = waiver(), oob = censor, na.value = NA_real_, trans = "identity", position = "left", sec.axis = waiver(), accuracy = 1, scale = 100, prefix = "", suffix = NULL, big.mark = NULL, decimal.mark = NULL, trim = TRUE, ... ) scale_y_currency_it( name = waiver(), breaks = waiver(), minor_breaks = waiver(), guide = waiver(), n.breaks = NULL, labels = waiver(), limits = NULL, expand = waiver(), oob = censor, na.value = NA_real_, trans = "identity", position = "left", sec.axis = waiver(), accuracy = 1, scale = 1, prefix = NULL, suffix = NULL, big.mark = NULL, decimal.mark = NULL, currency = "EUR", trim = TRUE, ... )scale_x_number_it( name = waiver(), breaks = waiver(), minor_breaks = waiver(), guide = waiver(), n.breaks = NULL, labels = waiver(), limits = NULL, expand = waiver(), oob = censor, na.value = NA_real_, trans = "identity", position = "bottom", sec.axis = waiver(), accuracy = 1, scale = 1, prefix = "", suffix = "", big.mark = NULL, decimal.mark = NULL, trim = TRUE, ... ) scale_x_percent_it( name = waiver(), breaks = waiver(), minor_breaks = waiver(), guide = waiver(), n.breaks = NULL, labels = waiver(), limits = NULL, expand = waiver(), oob = censor, na.value = NA_real_, trans = "identity", position = "bottom", sec.axis = waiver(), accuracy = 1, scale = 100, prefix = "", suffix = NULL, big.mark = NULL, decimal.mark = NULL, trim = TRUE, ... ) scale_x_currency_it( name = waiver(), breaks = waiver(), minor_breaks = waiver(), guide = waiver(), n.breaks = NULL, labels = waiver(), limits = NULL, expand = waiver(), oob = censor, na.value = NA_real_, trans = "identity", position = "bottom", sec.axis = waiver(), accuracy = 1, scale = 1, prefix = NULL, suffix = NULL, big.mark = NULL, decimal.mark = NULL, currency = "EUR", trim = TRUE, ... ) scale_y_number_it( name = waiver(), breaks = waiver(), minor_breaks = waiver(), guide = waiver(), n.breaks = NULL, labels = waiver(), limits = NULL, expand = waiver(), oob = censor, na.value = NA_real_, trans = "identity", position = "left", sec.axis = waiver(), accuracy = 1, scale = 1, prefix = "", suffix = "", big.mark = NULL, decimal.mark = NULL, trim = TRUE, ... ) scale_y_percent_it( name = waiver(), breaks = waiver(), minor_breaks = waiver(), guide = waiver(), n.breaks = NULL, labels = waiver(), limits = NULL, expand = waiver(), oob = censor, na.value = NA_real_, trans = "identity", position = "left", sec.axis = waiver(), accuracy = 1, scale = 100, prefix = "", suffix = NULL, big.mark = NULL, decimal.mark = NULL, trim = TRUE, ... ) scale_y_currency_it( name = waiver(), breaks = waiver(), minor_breaks = waiver(), guide = waiver(), n.breaks = NULL, labels = waiver(), limits = NULL, expand = waiver(), oob = censor, na.value = NA_real_, trans = "identity", position = "left", sec.axis = waiver(), accuracy = 1, scale = 1, prefix = NULL, suffix = NULL, big.mark = NULL, decimal.mark = NULL, currency = "EUR", trim = TRUE, ... )
name |
The name of the scale. Used as the axis or legend title. If
|
breaks |
One of:
|
minor_breaks |
One of:
|
guide |
A function used to create a guide or its name. See
|
n.breaks |
An integer guiding the number of major breaks. The algorithm
may choose a slightly different number to ensure nice break labels. Will
only have an effect if |
labels |
One of:
|
limits |
One of:
|
expand |
For position scales, a vector of range expansion constants used to add some
padding around the data to ensure that they are placed some distance
away from the axes. Use the convenience function |
oob |
One of:
|
na.value |
Missing values will be replaced with this value. |
trans |
|
position |
For position scales, The position of the axis.
|
sec.axis |
|
accuracy |
A number to round to. Use (e.g.) Applied to rescaled data. |
scale |
A scaling factor: |
prefix |
Additional text to display before the number. The suffix is
applied to absolute value before |
suffix |
Additional text to display after the number. |
big.mark |
Character used between every 3 digits to separate thousands.
The default ( |
decimal.mark |
The character to be used to indicate the numeric
decimal point. The default ( |
trim |
Logical, if |
... |
Other arguments passed on to |
currency |
currency symbol |
the number ones format axis text in decimal format.
the percent ones format axis text as percentages.
the currency ones format axis text as currencies.
A ggplot2 scale, for use in a +-chained plot construction.
# not rendered via demo_number(): several locales' group/currency signs # aren't in the check device's font, so only the (unrendered) scale # objects are shown scale_x_number_it() scale_x_percent_it() scale_x_currency_it()# not rendered via demo_number(): several locales' group/currency signs # aren't in the check device's font, so only the (unrendered) scale # objects are shown scale_x_number_it() scale_x_percent_it() scale_x_currency_it()
The scale_xxx_xxx family of functions makes it easy to format axis text in decimal format, as percentages or as currencies.
scale_x_number_jp( name = waiver(), breaks = waiver(), minor_breaks = waiver(), guide = waiver(), n.breaks = NULL, labels = waiver(), limits = NULL, expand = waiver(), oob = censor, na.value = NA_real_, trans = "identity", position = "bottom", sec.axis = waiver(), accuracy = 1, scale = 1, prefix = "", suffix = "", big.mark = NULL, decimal.mark = NULL, trim = TRUE, ... ) scale_x_percent_jp( name = waiver(), breaks = waiver(), minor_breaks = waiver(), guide = waiver(), n.breaks = NULL, labels = waiver(), limits = NULL, expand = waiver(), oob = censor, na.value = NA_real_, trans = "identity", position = "bottom", sec.axis = waiver(), accuracy = 1, scale = 100, prefix = "", suffix = NULL, big.mark = NULL, decimal.mark = NULL, trim = TRUE, ... ) scale_x_currency_jp( name = waiver(), breaks = waiver(), minor_breaks = waiver(), guide = waiver(), n.breaks = NULL, labels = waiver(), limits = NULL, expand = waiver(), oob = censor, na.value = NA_real_, trans = "identity", position = "bottom", sec.axis = waiver(), accuracy = 1, scale = 1, prefix = NULL, suffix = NULL, big.mark = NULL, decimal.mark = NULL, currency = "JPY", trim = TRUE, ... ) scale_y_number_jp( name = waiver(), breaks = waiver(), minor_breaks = waiver(), guide = waiver(), n.breaks = NULL, labels = waiver(), limits = NULL, expand = waiver(), oob = censor, na.value = NA_real_, trans = "identity", position = "left", sec.axis = waiver(), accuracy = 1, scale = 1, prefix = "", suffix = "", big.mark = NULL, decimal.mark = NULL, trim = TRUE, ... ) scale_y_percent_jp( name = waiver(), breaks = waiver(), minor_breaks = waiver(), guide = waiver(), n.breaks = NULL, labels = waiver(), limits = NULL, expand = waiver(), oob = censor, na.value = NA_real_, trans = "identity", position = "left", sec.axis = waiver(), accuracy = 1, scale = 100, prefix = "", suffix = NULL, big.mark = NULL, decimal.mark = NULL, trim = TRUE, ... ) scale_y_currency_jp( name = waiver(), breaks = waiver(), minor_breaks = waiver(), guide = waiver(), n.breaks = NULL, labels = waiver(), limits = NULL, expand = waiver(), oob = censor, na.value = NA_real_, trans = "identity", position = "left", sec.axis = waiver(), accuracy = 1, scale = 1, prefix = NULL, suffix = NULL, big.mark = NULL, decimal.mark = NULL, currency = "JPY", trim = TRUE, ... )scale_x_number_jp( name = waiver(), breaks = waiver(), minor_breaks = waiver(), guide = waiver(), n.breaks = NULL, labels = waiver(), limits = NULL, expand = waiver(), oob = censor, na.value = NA_real_, trans = "identity", position = "bottom", sec.axis = waiver(), accuracy = 1, scale = 1, prefix = "", suffix = "", big.mark = NULL, decimal.mark = NULL, trim = TRUE, ... ) scale_x_percent_jp( name = waiver(), breaks = waiver(), minor_breaks = waiver(), guide = waiver(), n.breaks = NULL, labels = waiver(), limits = NULL, expand = waiver(), oob = censor, na.value = NA_real_, trans = "identity", position = "bottom", sec.axis = waiver(), accuracy = 1, scale = 100, prefix = "", suffix = NULL, big.mark = NULL, decimal.mark = NULL, trim = TRUE, ... ) scale_x_currency_jp( name = waiver(), breaks = waiver(), minor_breaks = waiver(), guide = waiver(), n.breaks = NULL, labels = waiver(), limits = NULL, expand = waiver(), oob = censor, na.value = NA_real_, trans = "identity", position = "bottom", sec.axis = waiver(), accuracy = 1, scale = 1, prefix = NULL, suffix = NULL, big.mark = NULL, decimal.mark = NULL, currency = "JPY", trim = TRUE, ... ) scale_y_number_jp( name = waiver(), breaks = waiver(), minor_breaks = waiver(), guide = waiver(), n.breaks = NULL, labels = waiver(), limits = NULL, expand = waiver(), oob = censor, na.value = NA_real_, trans = "identity", position = "left", sec.axis = waiver(), accuracy = 1, scale = 1, prefix = "", suffix = "", big.mark = NULL, decimal.mark = NULL, trim = TRUE, ... ) scale_y_percent_jp( name = waiver(), breaks = waiver(), minor_breaks = waiver(), guide = waiver(), n.breaks = NULL, labels = waiver(), limits = NULL, expand = waiver(), oob = censor, na.value = NA_real_, trans = "identity", position = "left", sec.axis = waiver(), accuracy = 1, scale = 100, prefix = "", suffix = NULL, big.mark = NULL, decimal.mark = NULL, trim = TRUE, ... ) scale_y_currency_jp( name = waiver(), breaks = waiver(), minor_breaks = waiver(), guide = waiver(), n.breaks = NULL, labels = waiver(), limits = NULL, expand = waiver(), oob = censor, na.value = NA_real_, trans = "identity", position = "left", sec.axis = waiver(), accuracy = 1, scale = 1, prefix = NULL, suffix = NULL, big.mark = NULL, decimal.mark = NULL, currency = "JPY", trim = TRUE, ... )
name |
The name of the scale. Used as the axis or legend title. If
|
breaks |
One of:
|
minor_breaks |
One of:
|
guide |
A function used to create a guide or its name. See
|
n.breaks |
An integer guiding the number of major breaks. The algorithm
may choose a slightly different number to ensure nice break labels. Will
only have an effect if |
labels |
One of:
|
limits |
One of:
|
expand |
For position scales, a vector of range expansion constants used to add some
padding around the data to ensure that they are placed some distance
away from the axes. Use the convenience function |
oob |
One of:
|
na.value |
Missing values will be replaced with this value. |
trans |
|
position |
For position scales, The position of the axis.
|
sec.axis |
|
accuracy |
A number to round to. Use (e.g.) Applied to rescaled data. |
scale |
A scaling factor: |
prefix |
Additional text to display before the number. The suffix is
applied to absolute value before |
suffix |
Additional text to display after the number. |
big.mark |
Character used between every 3 digits to separate thousands.
The default ( |
decimal.mark |
The character to be used to indicate the numeric
decimal point. The default ( |
trim |
Logical, if |
... |
Other arguments passed on to |
currency |
currency symbol |
the number ones format axis text in decimal format.
the percent ones format axis text as percentages.
the currency ones format axis text as currencies.
A ggplot2 scale, for use in a +-chained plot construction.
# not rendered via demo_number(): several locales' group/currency signs # aren't in the check device's font, so only the (unrendered) scale # objects are shown scale_x_number_jp() scale_x_percent_jp() scale_x_currency_jp()# not rendered via demo_number(): several locales' group/currency signs # aren't in the check device's font, so only the (unrendered) scale # objects are shown scale_x_number_jp() scale_x_percent_jp() scale_x_currency_jp()
The scale_xxx_xxx family of functions makes it easy to format axis text in decimal format, as percentages or as currencies.
scale_x_number_kr( name = waiver(), breaks = waiver(), minor_breaks = waiver(), guide = waiver(), n.breaks = NULL, labels = waiver(), limits = NULL, expand = waiver(), oob = censor, na.value = NA_real_, trans = "identity", position = "bottom", sec.axis = waiver(), accuracy = 1, scale = 1, prefix = "", suffix = "", big.mark = NULL, decimal.mark = NULL, trim = TRUE, ... ) scale_x_percent_kr( name = waiver(), breaks = waiver(), minor_breaks = waiver(), guide = waiver(), n.breaks = NULL, labels = waiver(), limits = NULL, expand = waiver(), oob = censor, na.value = NA_real_, trans = "identity", position = "bottom", sec.axis = waiver(), accuracy = 1, scale = 100, prefix = "", suffix = NULL, big.mark = NULL, decimal.mark = NULL, trim = TRUE, ... ) scale_x_currency_kr( name = waiver(), breaks = waiver(), minor_breaks = waiver(), guide = waiver(), n.breaks = NULL, labels = waiver(), limits = NULL, expand = waiver(), oob = censor, na.value = NA_real_, trans = "identity", position = "bottom", sec.axis = waiver(), accuracy = 1, scale = 1, prefix = NULL, suffix = NULL, big.mark = NULL, decimal.mark = NULL, currency = "KRW", trim = TRUE, ... ) scale_y_number_kr( name = waiver(), breaks = waiver(), minor_breaks = waiver(), guide = waiver(), n.breaks = NULL, labels = waiver(), limits = NULL, expand = waiver(), oob = censor, na.value = NA_real_, trans = "identity", position = "left", sec.axis = waiver(), accuracy = 1, scale = 1, prefix = "", suffix = "", big.mark = NULL, decimal.mark = NULL, trim = TRUE, ... ) scale_y_percent_kr( name = waiver(), breaks = waiver(), minor_breaks = waiver(), guide = waiver(), n.breaks = NULL, labels = waiver(), limits = NULL, expand = waiver(), oob = censor, na.value = NA_real_, trans = "identity", position = "left", sec.axis = waiver(), accuracy = 1, scale = 100, prefix = "", suffix = NULL, big.mark = NULL, decimal.mark = NULL, trim = TRUE, ... ) scale_y_currency_kr( name = waiver(), breaks = waiver(), minor_breaks = waiver(), guide = waiver(), n.breaks = NULL, labels = waiver(), limits = NULL, expand = waiver(), oob = censor, na.value = NA_real_, trans = "identity", position = "left", sec.axis = waiver(), accuracy = 1, scale = 1, prefix = NULL, suffix = NULL, big.mark = NULL, decimal.mark = NULL, currency = "KRW", trim = TRUE, ... )scale_x_number_kr( name = waiver(), breaks = waiver(), minor_breaks = waiver(), guide = waiver(), n.breaks = NULL, labels = waiver(), limits = NULL, expand = waiver(), oob = censor, na.value = NA_real_, trans = "identity", position = "bottom", sec.axis = waiver(), accuracy = 1, scale = 1, prefix = "", suffix = "", big.mark = NULL, decimal.mark = NULL, trim = TRUE, ... ) scale_x_percent_kr( name = waiver(), breaks = waiver(), minor_breaks = waiver(), guide = waiver(), n.breaks = NULL, labels = waiver(), limits = NULL, expand = waiver(), oob = censor, na.value = NA_real_, trans = "identity", position = "bottom", sec.axis = waiver(), accuracy = 1, scale = 100, prefix = "", suffix = NULL, big.mark = NULL, decimal.mark = NULL, trim = TRUE, ... ) scale_x_currency_kr( name = waiver(), breaks = waiver(), minor_breaks = waiver(), guide = waiver(), n.breaks = NULL, labels = waiver(), limits = NULL, expand = waiver(), oob = censor, na.value = NA_real_, trans = "identity", position = "bottom", sec.axis = waiver(), accuracy = 1, scale = 1, prefix = NULL, suffix = NULL, big.mark = NULL, decimal.mark = NULL, currency = "KRW", trim = TRUE, ... ) scale_y_number_kr( name = waiver(), breaks = waiver(), minor_breaks = waiver(), guide = waiver(), n.breaks = NULL, labels = waiver(), limits = NULL, expand = waiver(), oob = censor, na.value = NA_real_, trans = "identity", position = "left", sec.axis = waiver(), accuracy = 1, scale = 1, prefix = "", suffix = "", big.mark = NULL, decimal.mark = NULL, trim = TRUE, ... ) scale_y_percent_kr( name = waiver(), breaks = waiver(), minor_breaks = waiver(), guide = waiver(), n.breaks = NULL, labels = waiver(), limits = NULL, expand = waiver(), oob = censor, na.value = NA_real_, trans = "identity", position = "left", sec.axis = waiver(), accuracy = 1, scale = 100, prefix = "", suffix = NULL, big.mark = NULL, decimal.mark = NULL, trim = TRUE, ... ) scale_y_currency_kr( name = waiver(), breaks = waiver(), minor_breaks = waiver(), guide = waiver(), n.breaks = NULL, labels = waiver(), limits = NULL, expand = waiver(), oob = censor, na.value = NA_real_, trans = "identity", position = "left", sec.axis = waiver(), accuracy = 1, scale = 1, prefix = NULL, suffix = NULL, big.mark = NULL, decimal.mark = NULL, currency = "KRW", trim = TRUE, ... )
name |
The name of the scale. Used as the axis or legend title. If
|
breaks |
One of:
|
minor_breaks |
One of:
|
guide |
A function used to create a guide or its name. See
|
n.breaks |
An integer guiding the number of major breaks. The algorithm
may choose a slightly different number to ensure nice break labels. Will
only have an effect if |
labels |
One of:
|
limits |
One of:
|
expand |
For position scales, a vector of range expansion constants used to add some
padding around the data to ensure that they are placed some distance
away from the axes. Use the convenience function |
oob |
One of:
|
na.value |
Missing values will be replaced with this value. |
trans |
|
position |
For position scales, The position of the axis.
|
sec.axis |
|
accuracy |
A number to round to. Use (e.g.) Applied to rescaled data. |
scale |
A scaling factor: |
prefix |
Additional text to display before the number. The suffix is
applied to absolute value before |
suffix |
Additional text to display after the number. |
big.mark |
Character used between every 3 digits to separate thousands.
The default ( |
decimal.mark |
The character to be used to indicate the numeric
decimal point. The default ( |
trim |
Logical, if |
... |
Other arguments passed on to |
currency |
currency symbol |
the number ones format axis text in decimal format.
the percent ones format axis text as percentages.
the currency ones format axis text as currencies.
A ggplot2 scale, for use in a +-chained plot construction.
# not rendered via demo_number(): several locales' group/currency signs # aren't in the check device's font, so only the (unrendered) scale # objects are shown scale_x_number_kr() scale_x_percent_kr() scale_x_currency_kr()# not rendered via demo_number(): several locales' group/currency signs # aren't in the check device's font, so only the (unrendered) scale # objects are shown scale_x_number_kr() scale_x_percent_kr() scale_x_currency_kr()
The scale_x/y_xxx_xxx family of functions makes it easy to format axis text in decimal format, as percentages or as currencies.
scale_x_number_locale( name = waiver(), breaks = waiver(), minor_breaks = waiver(), guide = waiver(), n.breaks = NULL, labels = waiver(), limits = NULL, expand = waiver(), oob = censor, na.value = NA_real_, trans = "identity", position = "bottom", sec.axis = waiver(), accuracy = 1, scale = 1, prefix = "", suffix = "", big.mark = NULL, decimal.mark = NULL, locale = "en-US", trim = TRUE, ... ) scale_y_number_locale( name = waiver(), breaks = waiver(), minor_breaks = waiver(), guide = waiver(), n.breaks = NULL, labels = waiver(), limits = NULL, expand = waiver(), oob = censor, na.value = NA_real_, trans = "identity", position = "left", sec.axis = waiver(), accuracy = 1, scale = 1, prefix = "", suffix = "", big.mark = NULL, decimal.mark = NULL, locale = "en-US", trim = TRUE, ... ) scale_x_percent_locale( name = waiver(), breaks = waiver(), minor_breaks = waiver(), guide = waiver(), n.breaks = NULL, labels = waiver(), limits = NULL, expand = waiver(), oob = censor, na.value = NA_real_, trans = "identity", position = "bottom", sec.axis = waiver(), accuracy = 1, scale = 100, prefix = NULL, suffix = NULL, big.mark = NULL, decimal.mark = NULL, locale = "en-US", trim = TRUE, ... ) scale_y_percent_locale( name = waiver(), breaks = waiver(), minor_breaks = waiver(), guide = waiver(), n.breaks = NULL, labels = waiver(), limits = NULL, expand = waiver(), oob = censor, na.value = NA_real_, trans = "identity", position = "left", sec.axis = waiver(), accuracy = 1, scale = 100, prefix = NULL, suffix = NULL, big.mark = NULL, decimal.mark = NULL, locale = "en-US", trim = TRUE, ... ) scale_x_currency_locale( name = waiver(), breaks = waiver(), minor_breaks = waiver(), guide = waiver(), n.breaks = NULL, labels = waiver(), limits = NULL, expand = waiver(), oob = censor, na.value = NA_real_, trans = "identity", position = "bottom", sec.axis = waiver(), accuracy = 1, scale = 1, prefix = NULL, suffix = NULL, big.mark = NULL, decimal.mark = NULL, locale = "en-US", currency = "USD", trim = TRUE, ... ) scale_y_currency_locale( name = waiver(), breaks = waiver(), minor_breaks = waiver(), guide = waiver(), n.breaks = NULL, labels = waiver(), limits = NULL, expand = waiver(), oob = censor, na.value = NA_real_, trans = "identity", position = "left", sec.axis = waiver(), accuracy = 1, scale = 1, prefix = NULL, suffix = NULL, big.mark = NULL, decimal.mark = NULL, locale = "en-US", currency = "USD", trim = TRUE, ... )scale_x_number_locale( name = waiver(), breaks = waiver(), minor_breaks = waiver(), guide = waiver(), n.breaks = NULL, labels = waiver(), limits = NULL, expand = waiver(), oob = censor, na.value = NA_real_, trans = "identity", position = "bottom", sec.axis = waiver(), accuracy = 1, scale = 1, prefix = "", suffix = "", big.mark = NULL, decimal.mark = NULL, locale = "en-US", trim = TRUE, ... ) scale_y_number_locale( name = waiver(), breaks = waiver(), minor_breaks = waiver(), guide = waiver(), n.breaks = NULL, labels = waiver(), limits = NULL, expand = waiver(), oob = censor, na.value = NA_real_, trans = "identity", position = "left", sec.axis = waiver(), accuracy = 1, scale = 1, prefix = "", suffix = "", big.mark = NULL, decimal.mark = NULL, locale = "en-US", trim = TRUE, ... ) scale_x_percent_locale( name = waiver(), breaks = waiver(), minor_breaks = waiver(), guide = waiver(), n.breaks = NULL, labels = waiver(), limits = NULL, expand = waiver(), oob = censor, na.value = NA_real_, trans = "identity", position = "bottom", sec.axis = waiver(), accuracy = 1, scale = 100, prefix = NULL, suffix = NULL, big.mark = NULL, decimal.mark = NULL, locale = "en-US", trim = TRUE, ... ) scale_y_percent_locale( name = waiver(), breaks = waiver(), minor_breaks = waiver(), guide = waiver(), n.breaks = NULL, labels = waiver(), limits = NULL, expand = waiver(), oob = censor, na.value = NA_real_, trans = "identity", position = "left", sec.axis = waiver(), accuracy = 1, scale = 100, prefix = NULL, suffix = NULL, big.mark = NULL, decimal.mark = NULL, locale = "en-US", trim = TRUE, ... ) scale_x_currency_locale( name = waiver(), breaks = waiver(), minor_breaks = waiver(), guide = waiver(), n.breaks = NULL, labels = waiver(), limits = NULL, expand = waiver(), oob = censor, na.value = NA_real_, trans = "identity", position = "bottom", sec.axis = waiver(), accuracy = 1, scale = 1, prefix = NULL, suffix = NULL, big.mark = NULL, decimal.mark = NULL, locale = "en-US", currency = "USD", trim = TRUE, ... ) scale_y_currency_locale( name = waiver(), breaks = waiver(), minor_breaks = waiver(), guide = waiver(), n.breaks = NULL, labels = waiver(), limits = NULL, expand = waiver(), oob = censor, na.value = NA_real_, trans = "identity", position = "left", sec.axis = waiver(), accuracy = 1, scale = 1, prefix = NULL, suffix = NULL, big.mark = NULL, decimal.mark = NULL, locale = "en-US", currency = "USD", trim = TRUE, ... )
name |
The name of the scale. Used as the axis or legend title. If
|
breaks |
One of:
|
minor_breaks |
One of:
|
guide |
A function used to create a guide or its name. See
|
n.breaks |
An integer guiding the number of major breaks. The algorithm
may choose a slightly different number to ensure nice break labels. Will
only have an effect if |
labels |
One of:
|
limits |
One of:
|
expand |
For position scales, a vector of range expansion constants used to add some
padding around the data to ensure that they are placed some distance
away from the axes. Use the convenience function |
oob |
One of:
|
na.value |
Missing values will be replaced with this value. |
trans |
|
position |
For position scales, The position of the axis.
|
sec.axis |
|
accuracy |
A number to round to. Use (e.g.) Applied to rescaled data. |
scale |
A scaling factor: |
prefix |
Additional text to display before the number. The suffix is
applied to absolute value before |
suffix |
Additional text to display after the number. |
big.mark |
Character used between every 3 digits to separate thousands.
The default ( |
decimal.mark |
The character to be used to indicate the numeric
decimal point. The default ( |
locale |
locale string. Defaults to "en-US" |
trim |
Logical, if |
... |
Other arguments passed on to |
currency |
currency symbol |
the number ones format axis text in decimal format.
the percent ones format axis text as percentages.
the currency ones format axis text as currencies.
A ggplot2 scale, for use in a +-chained plot construction.
# not rendered via demo_number(): several locales' group/currency signs # aren't in the check device's font, so only the (unrendered) scale # objects are shown scale_x_number_locale(locale = "fr-FR") scale_x_percent_locale(locale = "it-IT") scale_x_currency_locale(locale = "ja-JP", currency = "JPY")# not rendered via demo_number(): several locales' group/currency signs # aren't in the check device's font, so only the (unrendered) scale # objects are shown scale_x_number_locale(locale = "fr-FR") scale_x_percent_locale(locale = "it-IT") scale_x_currency_locale(locale = "ja-JP", currency = "JPY")
The scale_xxx_xxx family of functions makes it easy to format axis text in decimal format, as percentages or as currencies.
scale_x_number_mx( name = waiver(), breaks = waiver(), minor_breaks = waiver(), guide = waiver(), n.breaks = NULL, labels = waiver(), limits = NULL, expand = waiver(), oob = censor, na.value = NA_real_, trans = "identity", position = "bottom", sec.axis = waiver(), accuracy = 1, scale = 1, prefix = "", suffix = "", big.mark = NULL, decimal.mark = NULL, trim = TRUE, ... ) scale_x_percent_mx( name = waiver(), breaks = waiver(), minor_breaks = waiver(), guide = waiver(), n.breaks = NULL, labels = waiver(), limits = NULL, expand = waiver(), oob = censor, na.value = NA_real_, trans = "identity", position = "bottom", sec.axis = waiver(), accuracy = 1, scale = 100, prefix = "", suffix = NULL, big.mark = NULL, decimal.mark = NULL, trim = TRUE, ... ) scale_x_currency_mx( name = waiver(), breaks = waiver(), minor_breaks = waiver(), guide = waiver(), n.breaks = NULL, labels = waiver(), limits = NULL, expand = waiver(), oob = censor, na.value = NA_real_, trans = "identity", position = "bottom", sec.axis = waiver(), accuracy = 1, scale = 1, prefix = NULL, suffix = NULL, big.mark = NULL, decimal.mark = NULL, currency = "MXN", trim = TRUE, ... ) scale_y_number_mx( name = waiver(), breaks = waiver(), minor_breaks = waiver(), guide = waiver(), n.breaks = NULL, labels = waiver(), limits = NULL, expand = waiver(), oob = censor, na.value = NA_real_, trans = "identity", position = "left", sec.axis = waiver(), accuracy = 1, scale = 1, prefix = "", suffix = "", big.mark = NULL, decimal.mark = NULL, trim = TRUE, ... ) scale_y_percent_mx( name = waiver(), breaks = waiver(), minor_breaks = waiver(), guide = waiver(), n.breaks = NULL, labels = waiver(), limits = NULL, expand = waiver(), oob = censor, na.value = NA_real_, trans = "identity", position = "left", sec.axis = waiver(), accuracy = 1, scale = 100, prefix = "", suffix = NULL, big.mark = NULL, decimal.mark = NULL, trim = TRUE, ... ) scale_y_currency_mx( name = waiver(), breaks = waiver(), minor_breaks = waiver(), guide = waiver(), n.breaks = NULL, labels = waiver(), limits = NULL, expand = waiver(), oob = censor, na.value = NA_real_, trans = "identity", position = "left", sec.axis = waiver(), accuracy = 1, scale = 1, prefix = NULL, suffix = NULL, big.mark = NULL, decimal.mark = NULL, currency = "MXN", trim = TRUE, ... )scale_x_number_mx( name = waiver(), breaks = waiver(), minor_breaks = waiver(), guide = waiver(), n.breaks = NULL, labels = waiver(), limits = NULL, expand = waiver(), oob = censor, na.value = NA_real_, trans = "identity", position = "bottom", sec.axis = waiver(), accuracy = 1, scale = 1, prefix = "", suffix = "", big.mark = NULL, decimal.mark = NULL, trim = TRUE, ... ) scale_x_percent_mx( name = waiver(), breaks = waiver(), minor_breaks = waiver(), guide = waiver(), n.breaks = NULL, labels = waiver(), limits = NULL, expand = waiver(), oob = censor, na.value = NA_real_, trans = "identity", position = "bottom", sec.axis = waiver(), accuracy = 1, scale = 100, prefix = "", suffix = NULL, big.mark = NULL, decimal.mark = NULL, trim = TRUE, ... ) scale_x_currency_mx( name = waiver(), breaks = waiver(), minor_breaks = waiver(), guide = waiver(), n.breaks = NULL, labels = waiver(), limits = NULL, expand = waiver(), oob = censor, na.value = NA_real_, trans = "identity", position = "bottom", sec.axis = waiver(), accuracy = 1, scale = 1, prefix = NULL, suffix = NULL, big.mark = NULL, decimal.mark = NULL, currency = "MXN", trim = TRUE, ... ) scale_y_number_mx( name = waiver(), breaks = waiver(), minor_breaks = waiver(), guide = waiver(), n.breaks = NULL, labels = waiver(), limits = NULL, expand = waiver(), oob = censor, na.value = NA_real_, trans = "identity", position = "left", sec.axis = waiver(), accuracy = 1, scale = 1, prefix = "", suffix = "", big.mark = NULL, decimal.mark = NULL, trim = TRUE, ... ) scale_y_percent_mx( name = waiver(), breaks = waiver(), minor_breaks = waiver(), guide = waiver(), n.breaks = NULL, labels = waiver(), limits = NULL, expand = waiver(), oob = censor, na.value = NA_real_, trans = "identity", position = "left", sec.axis = waiver(), accuracy = 1, scale = 100, prefix = "", suffix = NULL, big.mark = NULL, decimal.mark = NULL, trim = TRUE, ... ) scale_y_currency_mx( name = waiver(), breaks = waiver(), minor_breaks = waiver(), guide = waiver(), n.breaks = NULL, labels = waiver(), limits = NULL, expand = waiver(), oob = censor, na.value = NA_real_, trans = "identity", position = "left", sec.axis = waiver(), accuracy = 1, scale = 1, prefix = NULL, suffix = NULL, big.mark = NULL, decimal.mark = NULL, currency = "MXN", trim = TRUE, ... )
name |
The name of the scale. Used as the axis or legend title. If
|
breaks |
One of:
|
minor_breaks |
One of:
|
guide |
A function used to create a guide or its name. See
|
n.breaks |
An integer guiding the number of major breaks. The algorithm
may choose a slightly different number to ensure nice break labels. Will
only have an effect if |
labels |
One of:
|
limits |
One of:
|
expand |
For position scales, a vector of range expansion constants used to add some
padding around the data to ensure that they are placed some distance
away from the axes. Use the convenience function |
oob |
One of:
|
na.value |
Missing values will be replaced with this value. |
trans |
|
position |
For position scales, The position of the axis.
|
sec.axis |
|
accuracy |
A number to round to. Use (e.g.) Applied to rescaled data. |
scale |
A scaling factor: |
prefix |
Additional text to display before the number. The suffix is
applied to absolute value before |
suffix |
Additional text to display after the number. |
big.mark |
Character used between every 3 digits to separate thousands.
The default ( |
decimal.mark |
The character to be used to indicate the numeric
decimal point. The default ( |
trim |
Logical, if |
... |
Other arguments passed on to |
currency |
currency symbol |
the number ones format axis text in decimal format.
the percent ones format axis text as percentages.
the currency ones format axis text as currencies.
A ggplot2 scale, for use in a +-chained plot construction.
# not rendered via demo_number(): several locales' group/currency signs # aren't in the check device's font, so only the (unrendered) scale # objects are shown scale_x_number_mx() scale_x_percent_mx() scale_x_currency_mx()# not rendered via demo_number(): several locales' group/currency signs # aren't in the check device's font, so only the (unrendered) scale # objects are shown scale_x_number_mx() scale_x_percent_mx() scale_x_currency_mx()
The scale_xxx_xxx family of functions makes it easy to format axis text in decimal format, as percentages or as currencies.
scale_x_number_no( name = waiver(), breaks = waiver(), minor_breaks = waiver(), guide = waiver(), n.breaks = NULL, labels = waiver(), limits = NULL, expand = waiver(), oob = censor, na.value = NA_real_, trans = "identity", position = "bottom", sec.axis = waiver(), accuracy = 1, scale = 1, prefix = "", suffix = "", big.mark = NULL, decimal.mark = NULL, trim = TRUE, ... ) scale_x_percent_no( name = waiver(), breaks = waiver(), minor_breaks = waiver(), guide = waiver(), n.breaks = NULL, labels = waiver(), limits = NULL, expand = waiver(), oob = censor, na.value = NA_real_, trans = "identity", position = "bottom", sec.axis = waiver(), accuracy = 1, scale = 100, prefix = "", suffix = NULL, big.mark = NULL, decimal.mark = NULL, trim = TRUE, ... ) scale_x_currency_no( name = waiver(), breaks = waiver(), minor_breaks = waiver(), guide = waiver(), n.breaks = NULL, labels = waiver(), limits = NULL, expand = waiver(), oob = censor, na.value = NA_real_, trans = "identity", position = "bottom", sec.axis = waiver(), accuracy = 1, scale = 1, prefix = NULL, suffix = NULL, big.mark = NULL, decimal.mark = NULL, currency = "NOK", trim = TRUE, ... ) scale_y_number_no( name = waiver(), breaks = waiver(), minor_breaks = waiver(), guide = waiver(), n.breaks = NULL, labels = waiver(), limits = NULL, expand = waiver(), oob = censor, na.value = NA_real_, trans = "identity", position = "left", sec.axis = waiver(), accuracy = 1, scale = 1, prefix = "", suffix = "", big.mark = NULL, decimal.mark = NULL, trim = TRUE, ... ) scale_y_percent_no( name = waiver(), breaks = waiver(), minor_breaks = waiver(), guide = waiver(), n.breaks = NULL, labels = waiver(), limits = NULL, expand = waiver(), oob = censor, na.value = NA_real_, trans = "identity", position = "left", sec.axis = waiver(), accuracy = 1, scale = 100, prefix = "", suffix = NULL, big.mark = NULL, decimal.mark = NULL, trim = TRUE, ... ) scale_y_currency_no( name = waiver(), breaks = waiver(), minor_breaks = waiver(), guide = waiver(), n.breaks = NULL, labels = waiver(), limits = NULL, expand = waiver(), oob = censor, na.value = NA_real_, trans = "identity", position = "left", sec.axis = waiver(), accuracy = 1, scale = 1, prefix = NULL, suffix = NULL, big.mark = NULL, decimal.mark = NULL, currency = "NOK", trim = TRUE, ... )scale_x_number_no( name = waiver(), breaks = waiver(), minor_breaks = waiver(), guide = waiver(), n.breaks = NULL, labels = waiver(), limits = NULL, expand = waiver(), oob = censor, na.value = NA_real_, trans = "identity", position = "bottom", sec.axis = waiver(), accuracy = 1, scale = 1, prefix = "", suffix = "", big.mark = NULL, decimal.mark = NULL, trim = TRUE, ... ) scale_x_percent_no( name = waiver(), breaks = waiver(), minor_breaks = waiver(), guide = waiver(), n.breaks = NULL, labels = waiver(), limits = NULL, expand = waiver(), oob = censor, na.value = NA_real_, trans = "identity", position = "bottom", sec.axis = waiver(), accuracy = 1, scale = 100, prefix = "", suffix = NULL, big.mark = NULL, decimal.mark = NULL, trim = TRUE, ... ) scale_x_currency_no( name = waiver(), breaks = waiver(), minor_breaks = waiver(), guide = waiver(), n.breaks = NULL, labels = waiver(), limits = NULL, expand = waiver(), oob = censor, na.value = NA_real_, trans = "identity", position = "bottom", sec.axis = waiver(), accuracy = 1, scale = 1, prefix = NULL, suffix = NULL, big.mark = NULL, decimal.mark = NULL, currency = "NOK", trim = TRUE, ... ) scale_y_number_no( name = waiver(), breaks = waiver(), minor_breaks = waiver(), guide = waiver(), n.breaks = NULL, labels = waiver(), limits = NULL, expand = waiver(), oob = censor, na.value = NA_real_, trans = "identity", position = "left", sec.axis = waiver(), accuracy = 1, scale = 1, prefix = "", suffix = "", big.mark = NULL, decimal.mark = NULL, trim = TRUE, ... ) scale_y_percent_no( name = waiver(), breaks = waiver(), minor_breaks = waiver(), guide = waiver(), n.breaks = NULL, labels = waiver(), limits = NULL, expand = waiver(), oob = censor, na.value = NA_real_, trans = "identity", position = "left", sec.axis = waiver(), accuracy = 1, scale = 100, prefix = "", suffix = NULL, big.mark = NULL, decimal.mark = NULL, trim = TRUE, ... ) scale_y_currency_no( name = waiver(), breaks = waiver(), minor_breaks = waiver(), guide = waiver(), n.breaks = NULL, labels = waiver(), limits = NULL, expand = waiver(), oob = censor, na.value = NA_real_, trans = "identity", position = "left", sec.axis = waiver(), accuracy = 1, scale = 1, prefix = NULL, suffix = NULL, big.mark = NULL, decimal.mark = NULL, currency = "NOK", trim = TRUE, ... )
name |
The name of the scale. Used as the axis or legend title. If
|
breaks |
One of:
|
minor_breaks |
One of:
|
guide |
A function used to create a guide or its name. See
|
n.breaks |
An integer guiding the number of major breaks. The algorithm
may choose a slightly different number to ensure nice break labels. Will
only have an effect if |
labels |
One of:
|
limits |
One of:
|
expand |
For position scales, a vector of range expansion constants used to add some
padding around the data to ensure that they are placed some distance
away from the axes. Use the convenience function |
oob |
One of:
|
na.value |
Missing values will be replaced with this value. |
trans |
|
position |
For position scales, The position of the axis.
|
sec.axis |
|
accuracy |
A number to round to. Use (e.g.) Applied to rescaled data. |
scale |
A scaling factor: |
prefix |
Additional text to display before the number. The suffix is
applied to absolute value before |
suffix |
Additional text to display after the number. |
big.mark |
Character used between every 3 digits to separate thousands.
The default ( |
decimal.mark |
The character to be used to indicate the numeric
decimal point. The default ( |
trim |
Logical, if |
... |
Other arguments passed on to |
currency |
currency symbol |
the number ones format axis text in decimal format.
the percent ones format axis text as percentages.
the currency ones format axis text as currencies.
A ggplot2 scale, for use in a +-chained plot construction.
# not rendered via demo_number(): several locales' group/currency signs # aren't in the check device's font, so only the (unrendered) scale # objects are shown scale_x_number_no() scale_x_percent_no() scale_x_currency_no()# not rendered via demo_number(): several locales' group/currency signs # aren't in the check device's font, so only the (unrendered) scale # objects are shown scale_x_number_no() scale_x_percent_no() scale_x_currency_no()
The scale_xxx_xxx family of functions makes it easy to format axis text in decimal format, as percentages or as currencies.
scale_x_number_pt( name = waiver(), breaks = waiver(), minor_breaks = waiver(), guide = waiver(), n.breaks = NULL, labels = waiver(), limits = NULL, expand = waiver(), oob = censor, na.value = NA_real_, trans = "identity", position = "bottom", sec.axis = waiver(), accuracy = 1, scale = 1, prefix = "", suffix = "", big.mark = NULL, decimal.mark = NULL, trim = TRUE, ... ) scale_x_percent_pt( name = waiver(), breaks = waiver(), minor_breaks = waiver(), guide = waiver(), n.breaks = NULL, labels = waiver(), limits = NULL, expand = waiver(), oob = censor, na.value = NA_real_, trans = "identity", position = "bottom", sec.axis = waiver(), accuracy = 1, scale = 100, prefix = "", suffix = NULL, big.mark = NULL, decimal.mark = NULL, trim = TRUE, ... ) scale_x_currency_pt( name = waiver(), breaks = waiver(), minor_breaks = waiver(), guide = waiver(), n.breaks = NULL, labels = waiver(), limits = NULL, expand = waiver(), oob = censor, na.value = NA_real_, trans = "identity", position = "bottom", sec.axis = waiver(), accuracy = 1, scale = 1, prefix = NULL, suffix = NULL, big.mark = NULL, decimal.mark = NULL, currency = "EUR", trim = TRUE, ... ) scale_y_number_pt( name = waiver(), breaks = waiver(), minor_breaks = waiver(), guide = waiver(), n.breaks = NULL, labels = waiver(), limits = NULL, expand = waiver(), oob = censor, na.value = NA_real_, trans = "identity", position = "left", sec.axis = waiver(), accuracy = 1, scale = 1, prefix = "", suffix = "", big.mark = NULL, decimal.mark = NULL, trim = TRUE, ... ) scale_y_percent_pt( name = waiver(), breaks = waiver(), minor_breaks = waiver(), guide = waiver(), n.breaks = NULL, labels = waiver(), limits = NULL, expand = waiver(), oob = censor, na.value = NA_real_, trans = "identity", position = "left", sec.axis = waiver(), accuracy = 1, scale = 100, prefix = "", suffix = NULL, big.mark = NULL, decimal.mark = NULL, trim = TRUE, ... ) scale_y_currency_pt( name = waiver(), breaks = waiver(), minor_breaks = waiver(), guide = waiver(), n.breaks = NULL, labels = waiver(), limits = NULL, expand = waiver(), oob = censor, na.value = NA_real_, trans = "identity", position = "left", sec.axis = waiver(), accuracy = 1, scale = 1, prefix = NULL, suffix = NULL, big.mark = NULL, decimal.mark = NULL, currency = "EUR", trim = TRUE, ... )scale_x_number_pt( name = waiver(), breaks = waiver(), minor_breaks = waiver(), guide = waiver(), n.breaks = NULL, labels = waiver(), limits = NULL, expand = waiver(), oob = censor, na.value = NA_real_, trans = "identity", position = "bottom", sec.axis = waiver(), accuracy = 1, scale = 1, prefix = "", suffix = "", big.mark = NULL, decimal.mark = NULL, trim = TRUE, ... ) scale_x_percent_pt( name = waiver(), breaks = waiver(), minor_breaks = waiver(), guide = waiver(), n.breaks = NULL, labels = waiver(), limits = NULL, expand = waiver(), oob = censor, na.value = NA_real_, trans = "identity", position = "bottom", sec.axis = waiver(), accuracy = 1, scale = 100, prefix = "", suffix = NULL, big.mark = NULL, decimal.mark = NULL, trim = TRUE, ... ) scale_x_currency_pt( name = waiver(), breaks = waiver(), minor_breaks = waiver(), guide = waiver(), n.breaks = NULL, labels = waiver(), limits = NULL, expand = waiver(), oob = censor, na.value = NA_real_, trans = "identity", position = "bottom", sec.axis = waiver(), accuracy = 1, scale = 1, prefix = NULL, suffix = NULL, big.mark = NULL, decimal.mark = NULL, currency = "EUR", trim = TRUE, ... ) scale_y_number_pt( name = waiver(), breaks = waiver(), minor_breaks = waiver(), guide = waiver(), n.breaks = NULL, labels = waiver(), limits = NULL, expand = waiver(), oob = censor, na.value = NA_real_, trans = "identity", position = "left", sec.axis = waiver(), accuracy = 1, scale = 1, prefix = "", suffix = "", big.mark = NULL, decimal.mark = NULL, trim = TRUE, ... ) scale_y_percent_pt( name = waiver(), breaks = waiver(), minor_breaks = waiver(), guide = waiver(), n.breaks = NULL, labels = waiver(), limits = NULL, expand = waiver(), oob = censor, na.value = NA_real_, trans = "identity", position = "left", sec.axis = waiver(), accuracy = 1, scale = 100, prefix = "", suffix = NULL, big.mark = NULL, decimal.mark = NULL, trim = TRUE, ... ) scale_y_currency_pt( name = waiver(), breaks = waiver(), minor_breaks = waiver(), guide = waiver(), n.breaks = NULL, labels = waiver(), limits = NULL, expand = waiver(), oob = censor, na.value = NA_real_, trans = "identity", position = "left", sec.axis = waiver(), accuracy = 1, scale = 1, prefix = NULL, suffix = NULL, big.mark = NULL, decimal.mark = NULL, currency = "EUR", trim = TRUE, ... )
name |
The name of the scale. Used as the axis or legend title. If
|
breaks |
One of:
|
minor_breaks |
One of:
|
guide |
A function used to create a guide or its name. See
|
n.breaks |
An integer guiding the number of major breaks. The algorithm
may choose a slightly different number to ensure nice break labels. Will
only have an effect if |
labels |
One of:
|
limits |
One of:
|
expand |
For position scales, a vector of range expansion constants used to add some
padding around the data to ensure that they are placed some distance
away from the axes. Use the convenience function |
oob |
One of:
|
na.value |
Missing values will be replaced with this value. |
trans |
|
position |
For position scales, The position of the axis.
|
sec.axis |
|
accuracy |
A number to round to. Use (e.g.) Applied to rescaled data. |
scale |
A scaling factor: |
prefix |
Additional text to display before the number. The suffix is
applied to absolute value before |
suffix |
Additional text to display after the number. |
big.mark |
Character used between every 3 digits to separate thousands.
The default ( |
decimal.mark |
The character to be used to indicate the numeric
decimal point. The default ( |
trim |
Logical, if |
... |
Other arguments passed on to |
currency |
currency symbol |
the number ones format axis text in decimal format.
the percent ones format axis text as percentages.
the currency ones format axis text as currencies.
A ggplot2 scale, for use in a +-chained plot construction.
# not rendered via demo_number(): several locales' group/currency signs # aren't in the check device's font, so only the (unrendered) scale # objects are shown scale_x_number_pt() scale_x_percent_pt() scale_x_currency_pt()# not rendered via demo_number(): several locales' group/currency signs # aren't in the check device's font, so only the (unrendered) scale # objects are shown scale_x_number_pt() scale_x_percent_pt() scale_x_currency_pt()
The scale_xxx_xxx family of functions makes it easy to format axis text in decimal format, as percentages or as currencies.
scale_x_number_ru( name = waiver(), breaks = waiver(), minor_breaks = waiver(), guide = waiver(), n.breaks = NULL, labels = waiver(), limits = NULL, expand = waiver(), oob = censor, na.value = NA_real_, trans = "identity", position = "bottom", sec.axis = waiver(), accuracy = 1, scale = 1, prefix = "", suffix = "", big.mark = NULL, decimal.mark = NULL, trim = TRUE, ... ) scale_x_percent_ru( name = waiver(), breaks = waiver(), minor_breaks = waiver(), guide = waiver(), n.breaks = NULL, labels = waiver(), limits = NULL, expand = waiver(), oob = censor, na.value = NA_real_, trans = "identity", position = "bottom", sec.axis = waiver(), accuracy = 1, scale = 100, prefix = NULL, suffix = NULL, big.mark = NULL, decimal.mark = NULL, trim = TRUE, ... ) scale_x_currency_ru( name = waiver(), breaks = waiver(), minor_breaks = waiver(), guide = waiver(), n.breaks = NULL, labels = waiver(), limits = NULL, expand = waiver(), oob = censor, na.value = NA_real_, trans = "identity", position = "bottom", sec.axis = waiver(), accuracy = 1, scale = 1, prefix = NULL, suffix = NULL, big.mark = NULL, decimal.mark = NULL, currency = "RUB", trim = TRUE, ... ) scale_y_number_ru( name = waiver(), breaks = waiver(), minor_breaks = waiver(), guide = waiver(), n.breaks = NULL, labels = waiver(), limits = NULL, expand = waiver(), oob = censor, na.value = NA_real_, trans = "identity", position = "left", sec.axis = waiver(), accuracy = 1, scale = 1, prefix = "", suffix = "", big.mark = NULL, decimal.mark = NULL, trim = TRUE, ... ) scale_y_percent_ru( name = waiver(), breaks = waiver(), minor_breaks = waiver(), guide = waiver(), n.breaks = NULL, labels = waiver(), limits = NULL, expand = waiver(), oob = censor, na.value = NA_real_, trans = "identity", position = "left", sec.axis = waiver(), accuracy = 1, scale = 100, prefix = NULL, suffix = NULL, big.mark = NULL, decimal.mark = NULL, trim = TRUE, ... ) scale_y_currency_ru( name = waiver(), breaks = waiver(), minor_breaks = waiver(), guide = waiver(), n.breaks = NULL, labels = waiver(), limits = NULL, expand = waiver(), oob = censor, na.value = NA_real_, trans = "identity", position = "left", sec.axis = waiver(), accuracy = 1, scale = 1, prefix = NULL, suffix = NULL, big.mark = NULL, decimal.mark = NULL, currency = "RUB", trim = TRUE, ... )scale_x_number_ru( name = waiver(), breaks = waiver(), minor_breaks = waiver(), guide = waiver(), n.breaks = NULL, labels = waiver(), limits = NULL, expand = waiver(), oob = censor, na.value = NA_real_, trans = "identity", position = "bottom", sec.axis = waiver(), accuracy = 1, scale = 1, prefix = "", suffix = "", big.mark = NULL, decimal.mark = NULL, trim = TRUE, ... ) scale_x_percent_ru( name = waiver(), breaks = waiver(), minor_breaks = waiver(), guide = waiver(), n.breaks = NULL, labels = waiver(), limits = NULL, expand = waiver(), oob = censor, na.value = NA_real_, trans = "identity", position = "bottom", sec.axis = waiver(), accuracy = 1, scale = 100, prefix = NULL, suffix = NULL, big.mark = NULL, decimal.mark = NULL, trim = TRUE, ... ) scale_x_currency_ru( name = waiver(), breaks = waiver(), minor_breaks = waiver(), guide = waiver(), n.breaks = NULL, labels = waiver(), limits = NULL, expand = waiver(), oob = censor, na.value = NA_real_, trans = "identity", position = "bottom", sec.axis = waiver(), accuracy = 1, scale = 1, prefix = NULL, suffix = NULL, big.mark = NULL, decimal.mark = NULL, currency = "RUB", trim = TRUE, ... ) scale_y_number_ru( name = waiver(), breaks = waiver(), minor_breaks = waiver(), guide = waiver(), n.breaks = NULL, labels = waiver(), limits = NULL, expand = waiver(), oob = censor, na.value = NA_real_, trans = "identity", position = "left", sec.axis = waiver(), accuracy = 1, scale = 1, prefix = "", suffix = "", big.mark = NULL, decimal.mark = NULL, trim = TRUE, ... ) scale_y_percent_ru( name = waiver(), breaks = waiver(), minor_breaks = waiver(), guide = waiver(), n.breaks = NULL, labels = waiver(), limits = NULL, expand = waiver(), oob = censor, na.value = NA_real_, trans = "identity", position = "left", sec.axis = waiver(), accuracy = 1, scale = 100, prefix = NULL, suffix = NULL, big.mark = NULL, decimal.mark = NULL, trim = TRUE, ... ) scale_y_currency_ru( name = waiver(), breaks = waiver(), minor_breaks = waiver(), guide = waiver(), n.breaks = NULL, labels = waiver(), limits = NULL, expand = waiver(), oob = censor, na.value = NA_real_, trans = "identity", position = "left", sec.axis = waiver(), accuracy = 1, scale = 1, prefix = NULL, suffix = NULL, big.mark = NULL, decimal.mark = NULL, currency = "RUB", trim = TRUE, ... )
name |
The name of the scale. Used as the axis or legend title. If
|
breaks |
One of:
|
minor_breaks |
One of:
|
guide |
A function used to create a guide or its name. See
|
n.breaks |
An integer guiding the number of major breaks. The algorithm
may choose a slightly different number to ensure nice break labels. Will
only have an effect if |
labels |
One of:
|
limits |
One of:
|
expand |
For position scales, a vector of range expansion constants used to add some
padding around the data to ensure that they are placed some distance
away from the axes. Use the convenience function |
oob |
One of:
|
na.value |
Missing values will be replaced with this value. |
trans |
|
position |
For position scales, The position of the axis.
|
sec.axis |
|
accuracy |
A number to round to. Use (e.g.) Applied to rescaled data. |
scale |
A scaling factor: |
prefix |
Additional text to display before the number. The suffix is
applied to absolute value before |
suffix |
Additional text to display after the number. |
big.mark |
Character used between every 3 digits to separate thousands.
The default ( |
decimal.mark |
The character to be used to indicate the numeric
decimal point. The default ( |
trim |
Logical, if |
... |
Other arguments passed on to |
currency |
currency symbol |
the number ones format axis text in decimal format.
the percent ones format axis text as percentages.
the currency ones format axis text as currencies.
A ggplot2 scale, for use in a +-chained plot construction.
# not rendered via demo_number(): several locales' group/currency signs # aren't in the check device's font, so only the (unrendered) scale # objects are shown scale_x_number_ru() scale_x_percent_ru() scale_x_currency_ru()# not rendered via demo_number(): several locales' group/currency signs # aren't in the check device's font, so only the (unrendered) scale # objects are shown scale_x_number_ru() scale_x_percent_ru() scale_x_currency_ru()
The scale_xxx_xxx family of functions makes it easy to format axis text in decimal format, as percentages or as currencies.
scale_x_number_sa( name = waiver(), breaks = waiver(), minor_breaks = waiver(), guide = waiver(), n.breaks = NULL, labels = waiver(), limits = NULL, expand = waiver(), oob = censor, na.value = NA_real_, trans = "identity", position = "bottom", sec.axis = waiver(), accuracy = 1, scale = 1, prefix = "", suffix = "", big.mark = NULL, decimal.mark = NULL, trim = TRUE, ... ) scale_x_percent_sa( name = waiver(), breaks = waiver(), minor_breaks = waiver(), guide = waiver(), n.breaks = NULL, labels = waiver(), limits = NULL, expand = waiver(), oob = censor, na.value = NA_real_, trans = "identity", position = "bottom", sec.axis = waiver(), accuracy = 1, scale = 100, prefix = NULL, suffix = NULL, big.mark = NULL, decimal.mark = NULL, trim = TRUE, ... ) scale_x_currency_sa( name = waiver(), breaks = waiver(), minor_breaks = waiver(), guide = waiver(), n.breaks = NULL, labels = waiver(), limits = NULL, expand = waiver(), oob = censor, na.value = NA_real_, trans = "identity", position = "bottom", sec.axis = waiver(), accuracy = 1, scale = 1, prefix = NULL, suffix = NULL, big.mark = NULL, decimal.mark = NULL, currency = "SAR", trim = TRUE, ... ) scale_y_number_sa( name = waiver(), breaks = waiver(), minor_breaks = waiver(), guide = waiver(), n.breaks = NULL, labels = waiver(), limits = NULL, expand = waiver(), oob = censor, na.value = NA_real_, trans = "identity", position = "left", sec.axis = waiver(), accuracy = 1, scale = 1, prefix = "", suffix = "", big.mark = NULL, decimal.mark = NULL, trim = TRUE, ... ) scale_y_percent_sa( name = waiver(), breaks = waiver(), minor_breaks = waiver(), guide = waiver(), n.breaks = NULL, labels = waiver(), limits = NULL, expand = waiver(), oob = censor, na.value = NA_real_, trans = "identity", position = "left", sec.axis = waiver(), accuracy = 1, scale = 100, prefix = NULL, suffix = NULL, big.mark = NULL, decimal.mark = NULL, trim = TRUE, ... ) scale_y_currency_sa( name = waiver(), breaks = waiver(), minor_breaks = waiver(), guide = waiver(), n.breaks = NULL, labels = waiver(), limits = NULL, expand = waiver(), oob = censor, na.value = NA_real_, trans = "identity", position = "left", sec.axis = waiver(), accuracy = 1, scale = 1, prefix = NULL, suffix = NULL, big.mark = NULL, decimal.mark = NULL, currency = "SAR", trim = TRUE, ... )scale_x_number_sa( name = waiver(), breaks = waiver(), minor_breaks = waiver(), guide = waiver(), n.breaks = NULL, labels = waiver(), limits = NULL, expand = waiver(), oob = censor, na.value = NA_real_, trans = "identity", position = "bottom", sec.axis = waiver(), accuracy = 1, scale = 1, prefix = "", suffix = "", big.mark = NULL, decimal.mark = NULL, trim = TRUE, ... ) scale_x_percent_sa( name = waiver(), breaks = waiver(), minor_breaks = waiver(), guide = waiver(), n.breaks = NULL, labels = waiver(), limits = NULL, expand = waiver(), oob = censor, na.value = NA_real_, trans = "identity", position = "bottom", sec.axis = waiver(), accuracy = 1, scale = 100, prefix = NULL, suffix = NULL, big.mark = NULL, decimal.mark = NULL, trim = TRUE, ... ) scale_x_currency_sa( name = waiver(), breaks = waiver(), minor_breaks = waiver(), guide = waiver(), n.breaks = NULL, labels = waiver(), limits = NULL, expand = waiver(), oob = censor, na.value = NA_real_, trans = "identity", position = "bottom", sec.axis = waiver(), accuracy = 1, scale = 1, prefix = NULL, suffix = NULL, big.mark = NULL, decimal.mark = NULL, currency = "SAR", trim = TRUE, ... ) scale_y_number_sa( name = waiver(), breaks = waiver(), minor_breaks = waiver(), guide = waiver(), n.breaks = NULL, labels = waiver(), limits = NULL, expand = waiver(), oob = censor, na.value = NA_real_, trans = "identity", position = "left", sec.axis = waiver(), accuracy = 1, scale = 1, prefix = "", suffix = "", big.mark = NULL, decimal.mark = NULL, trim = TRUE, ... ) scale_y_percent_sa( name = waiver(), breaks = waiver(), minor_breaks = waiver(), guide = waiver(), n.breaks = NULL, labels = waiver(), limits = NULL, expand = waiver(), oob = censor, na.value = NA_real_, trans = "identity", position = "left", sec.axis = waiver(), accuracy = 1, scale = 100, prefix = NULL, suffix = NULL, big.mark = NULL, decimal.mark = NULL, trim = TRUE, ... ) scale_y_currency_sa( name = waiver(), breaks = waiver(), minor_breaks = waiver(), guide = waiver(), n.breaks = NULL, labels = waiver(), limits = NULL, expand = waiver(), oob = censor, na.value = NA_real_, trans = "identity", position = "left", sec.axis = waiver(), accuracy = 1, scale = 1, prefix = NULL, suffix = NULL, big.mark = NULL, decimal.mark = NULL, currency = "SAR", trim = TRUE, ... )
name |
The name of the scale. Used as the axis or legend title. If
|
breaks |
One of:
|
minor_breaks |
One of:
|
guide |
A function used to create a guide or its name. See
|
n.breaks |
An integer guiding the number of major breaks. The algorithm
may choose a slightly different number to ensure nice break labels. Will
only have an effect if |
labels |
One of:
|
limits |
One of:
|
expand |
For position scales, a vector of range expansion constants used to add some
padding around the data to ensure that they are placed some distance
away from the axes. Use the convenience function |
oob |
One of:
|
na.value |
Missing values will be replaced with this value. |
trans |
|
position |
For position scales, The position of the axis.
|
sec.axis |
|
accuracy |
A number to round to. Use (e.g.) Applied to rescaled data. |
scale |
A scaling factor: |
prefix |
Additional text to display before the number. The suffix is
applied to absolute value before |
suffix |
Additional text to display after the number. |
big.mark |
Character used between every 3 digits to separate thousands.
The default ( |
decimal.mark |
The character to be used to indicate the numeric
decimal point. The default ( |
trim |
Logical, if |
... |
Other arguments passed on to |
currency |
currency symbol |
the number ones format axis text in decimal format.
the percent ones format axis text as percentages.
the currency ones format axis text as currencies.
A ggplot2 scale, for use in a +-chained plot construction.
# not rendered via demo_number(): several locales' group/currency signs # aren't in the check device's font, so only the (unrendered) scale # objects are shown scale_x_number_sa() scale_x_percent_sa() scale_x_currency_sa()# not rendered via demo_number(): several locales' group/currency signs # aren't in the check device's font, so only the (unrendered) scale # objects are shown scale_x_number_sa() scale_x_percent_sa() scale_x_currency_sa()
The scale_xxx_xxx family of functions makes it easy to format axis text in decimal format, as percentages or as currencies.
scale_x_number_se( name = waiver(), breaks = waiver(), minor_breaks = waiver(), guide = waiver(), n.breaks = NULL, labels = waiver(), limits = NULL, expand = waiver(), oob = censor, na.value = NA_real_, trans = "identity", position = "bottom", sec.axis = waiver(), accuracy = 1, scale = 1, prefix = "", suffix = "", big.mark = NULL, decimal.mark = NULL, trim = TRUE, ... ) scale_x_percent_se( name = waiver(), breaks = waiver(), minor_breaks = waiver(), guide = waiver(), n.breaks = NULL, labels = waiver(), limits = NULL, expand = waiver(), oob = censor, na.value = NA_real_, trans = "identity", position = "bottom", sec.axis = waiver(), accuracy = 1, scale = 100, prefix = "", suffix = NULL, big.mark = NULL, decimal.mark = NULL, trim = TRUE, ... ) scale_x_currency_se( name = waiver(), breaks = waiver(), minor_breaks = waiver(), guide = waiver(), n.breaks = NULL, labels = waiver(), limits = NULL, expand = waiver(), oob = censor, na.value = NA_real_, trans = "identity", position = "bottom", sec.axis = waiver(), accuracy = 1, scale = 1, prefix = NULL, suffix = NULL, big.mark = NULL, decimal.mark = NULL, currency = "SEK", trim = TRUE, ... ) scale_y_number_se( name = waiver(), breaks = waiver(), minor_breaks = waiver(), guide = waiver(), n.breaks = NULL, labels = waiver(), limits = NULL, expand = waiver(), oob = censor, na.value = NA_real_, trans = "identity", position = "left", sec.axis = waiver(), accuracy = 1, scale = 1, prefix = "", suffix = "", big.mark = NULL, decimal.mark = NULL, trim = TRUE, ... ) scale_y_percent_se( name = waiver(), breaks = waiver(), minor_breaks = waiver(), guide = waiver(), n.breaks = NULL, labels = waiver(), limits = NULL, expand = waiver(), oob = censor, na.value = NA_real_, trans = "identity", position = "left", sec.axis = waiver(), accuracy = 1, scale = 100, prefix = "", suffix = NULL, big.mark = NULL, decimal.mark = NULL, trim = TRUE, ... ) scale_y_currency_se( name = waiver(), breaks = waiver(), minor_breaks = waiver(), guide = waiver(), n.breaks = NULL, labels = waiver(), limits = NULL, expand = waiver(), oob = censor, na.value = NA_real_, trans = "identity", position = "left", sec.axis = waiver(), accuracy = 1, scale = 1, prefix = NULL, suffix = NULL, big.mark = NULL, decimal.mark = NULL, currency = "SEK", trim = TRUE, ... )scale_x_number_se( name = waiver(), breaks = waiver(), minor_breaks = waiver(), guide = waiver(), n.breaks = NULL, labels = waiver(), limits = NULL, expand = waiver(), oob = censor, na.value = NA_real_, trans = "identity", position = "bottom", sec.axis = waiver(), accuracy = 1, scale = 1, prefix = "", suffix = "", big.mark = NULL, decimal.mark = NULL, trim = TRUE, ... ) scale_x_percent_se( name = waiver(), breaks = waiver(), minor_breaks = waiver(), guide = waiver(), n.breaks = NULL, labels = waiver(), limits = NULL, expand = waiver(), oob = censor, na.value = NA_real_, trans = "identity", position = "bottom", sec.axis = waiver(), accuracy = 1, scale = 100, prefix = "", suffix = NULL, big.mark = NULL, decimal.mark = NULL, trim = TRUE, ... ) scale_x_currency_se( name = waiver(), breaks = waiver(), minor_breaks = waiver(), guide = waiver(), n.breaks = NULL, labels = waiver(), limits = NULL, expand = waiver(), oob = censor, na.value = NA_real_, trans = "identity", position = "bottom", sec.axis = waiver(), accuracy = 1, scale = 1, prefix = NULL, suffix = NULL, big.mark = NULL, decimal.mark = NULL, currency = "SEK", trim = TRUE, ... ) scale_y_number_se( name = waiver(), breaks = waiver(), minor_breaks = waiver(), guide = waiver(), n.breaks = NULL, labels = waiver(), limits = NULL, expand = waiver(), oob = censor, na.value = NA_real_, trans = "identity", position = "left", sec.axis = waiver(), accuracy = 1, scale = 1, prefix = "", suffix = "", big.mark = NULL, decimal.mark = NULL, trim = TRUE, ... ) scale_y_percent_se( name = waiver(), breaks = waiver(), minor_breaks = waiver(), guide = waiver(), n.breaks = NULL, labels = waiver(), limits = NULL, expand = waiver(), oob = censor, na.value = NA_real_, trans = "identity", position = "left", sec.axis = waiver(), accuracy = 1, scale = 100, prefix = "", suffix = NULL, big.mark = NULL, decimal.mark = NULL, trim = TRUE, ... ) scale_y_currency_se( name = waiver(), breaks = waiver(), minor_breaks = waiver(), guide = waiver(), n.breaks = NULL, labels = waiver(), limits = NULL, expand = waiver(), oob = censor, na.value = NA_real_, trans = "identity", position = "left", sec.axis = waiver(), accuracy = 1, scale = 1, prefix = NULL, suffix = NULL, big.mark = NULL, decimal.mark = NULL, currency = "SEK", trim = TRUE, ... )
name |
The name of the scale. Used as the axis or legend title. If
|
breaks |
One of:
|
minor_breaks |
One of:
|
guide |
A function used to create a guide or its name. See
|
n.breaks |
An integer guiding the number of major breaks. The algorithm
may choose a slightly different number to ensure nice break labels. Will
only have an effect if |
labels |
One of:
|
limits |
One of:
|
expand |
For position scales, a vector of range expansion constants used to add some
padding around the data to ensure that they are placed some distance
away from the axes. Use the convenience function |
oob |
One of:
|
na.value |
Missing values will be replaced with this value. |
trans |
|
position |
For position scales, The position of the axis.
|
sec.axis |
|
accuracy |
A number to round to. Use (e.g.) Applied to rescaled data. |
scale |
A scaling factor: |
prefix |
Additional text to display before the number. The suffix is
applied to absolute value before |
suffix |
Additional text to display after the number. |
big.mark |
Character used between every 3 digits to separate thousands.
The default ( |
decimal.mark |
The character to be used to indicate the numeric
decimal point. The default ( |
trim |
Logical, if |
... |
Other arguments passed on to |
currency |
currency symbol |
the number ones format axis text in decimal format.
the percent ones format axis text as percentages.
the currency ones format axis text as currencies.
A ggplot2 scale, for use in a +-chained plot construction.
# not rendered via demo_number(): several locales' group/currency signs # aren't in the check device's font, so only the (unrendered) scale # objects are shown scale_x_number_se() scale_x_percent_se() scale_x_currency_se()# not rendered via demo_number(): several locales' group/currency signs # aren't in the check device's font, so only the (unrendered) scale # objects are shown scale_x_number_se() scale_x_percent_se() scale_x_currency_se()
The scale_xxx_xxx family of functions makes it easy to format axis text in decimal format, as percentages or as currencies.
scale_x_number_tr( name = waiver(), breaks = waiver(), minor_breaks = waiver(), guide = waiver(), n.breaks = NULL, labels = waiver(), limits = NULL, expand = waiver(), oob = censor, na.value = NA_real_, trans = "identity", position = "bottom", sec.axis = waiver(), accuracy = 1, scale = 1, prefix = "", suffix = "", big.mark = NULL, decimal.mark = NULL, trim = TRUE, ... ) scale_x_percent_tr( name = waiver(), breaks = waiver(), minor_breaks = waiver(), guide = waiver(), n.breaks = NULL, labels = waiver(), limits = NULL, expand = waiver(), oob = censor, na.value = NA_real_, trans = "identity", position = "bottom", sec.axis = waiver(), accuracy = 1, scale = 100, prefix = NULL, suffix = NULL, big.mark = NULL, decimal.mark = NULL, trim = TRUE, ... ) scale_x_currency_tr( name = waiver(), breaks = waiver(), minor_breaks = waiver(), guide = waiver(), n.breaks = NULL, labels = waiver(), limits = NULL, expand = waiver(), oob = censor, na.value = NA_real_, trans = "identity", position = "bottom", sec.axis = waiver(), accuracy = 1, scale = 1, prefix = NULL, suffix = NULL, big.mark = NULL, decimal.mark = NULL, currency = "TRY", trim = TRUE, ... ) scale_y_number_tr( name = waiver(), breaks = waiver(), minor_breaks = waiver(), guide = waiver(), n.breaks = NULL, labels = waiver(), limits = NULL, expand = waiver(), oob = censor, na.value = NA_real_, trans = "identity", position = "left", sec.axis = waiver(), accuracy = 1, scale = 1, prefix = "", suffix = "", big.mark = NULL, decimal.mark = NULL, trim = TRUE, ... ) scale_y_percent_tr( name = waiver(), breaks = waiver(), minor_breaks = waiver(), guide = waiver(), n.breaks = NULL, labels = waiver(), limits = NULL, expand = waiver(), oob = censor, na.value = NA_real_, trans = "identity", position = "left", sec.axis = waiver(), accuracy = 1, scale = 100, prefix = NULL, suffix = NULL, big.mark = NULL, decimal.mark = NULL, trim = TRUE, ... ) scale_y_currency_tr( name = waiver(), breaks = waiver(), minor_breaks = waiver(), guide = waiver(), n.breaks = NULL, labels = waiver(), limits = NULL, expand = waiver(), oob = censor, na.value = NA_real_, trans = "identity", position = "left", sec.axis = waiver(), accuracy = 1, scale = 1, prefix = NULL, suffix = NULL, big.mark = NULL, decimal.mark = NULL, currency = "TRY", trim = TRUE, ... )scale_x_number_tr( name = waiver(), breaks = waiver(), minor_breaks = waiver(), guide = waiver(), n.breaks = NULL, labels = waiver(), limits = NULL, expand = waiver(), oob = censor, na.value = NA_real_, trans = "identity", position = "bottom", sec.axis = waiver(), accuracy = 1, scale = 1, prefix = "", suffix = "", big.mark = NULL, decimal.mark = NULL, trim = TRUE, ... ) scale_x_percent_tr( name = waiver(), breaks = waiver(), minor_breaks = waiver(), guide = waiver(), n.breaks = NULL, labels = waiver(), limits = NULL, expand = waiver(), oob = censor, na.value = NA_real_, trans = "identity", position = "bottom", sec.axis = waiver(), accuracy = 1, scale = 100, prefix = NULL, suffix = NULL, big.mark = NULL, decimal.mark = NULL, trim = TRUE, ... ) scale_x_currency_tr( name = waiver(), breaks = waiver(), minor_breaks = waiver(), guide = waiver(), n.breaks = NULL, labels = waiver(), limits = NULL, expand = waiver(), oob = censor, na.value = NA_real_, trans = "identity", position = "bottom", sec.axis = waiver(), accuracy = 1, scale = 1, prefix = NULL, suffix = NULL, big.mark = NULL, decimal.mark = NULL, currency = "TRY", trim = TRUE, ... ) scale_y_number_tr( name = waiver(), breaks = waiver(), minor_breaks = waiver(), guide = waiver(), n.breaks = NULL, labels = waiver(), limits = NULL, expand = waiver(), oob = censor, na.value = NA_real_, trans = "identity", position = "left", sec.axis = waiver(), accuracy = 1, scale = 1, prefix = "", suffix = "", big.mark = NULL, decimal.mark = NULL, trim = TRUE, ... ) scale_y_percent_tr( name = waiver(), breaks = waiver(), minor_breaks = waiver(), guide = waiver(), n.breaks = NULL, labels = waiver(), limits = NULL, expand = waiver(), oob = censor, na.value = NA_real_, trans = "identity", position = "left", sec.axis = waiver(), accuracy = 1, scale = 100, prefix = NULL, suffix = NULL, big.mark = NULL, decimal.mark = NULL, trim = TRUE, ... ) scale_y_currency_tr( name = waiver(), breaks = waiver(), minor_breaks = waiver(), guide = waiver(), n.breaks = NULL, labels = waiver(), limits = NULL, expand = waiver(), oob = censor, na.value = NA_real_, trans = "identity", position = "left", sec.axis = waiver(), accuracy = 1, scale = 1, prefix = NULL, suffix = NULL, big.mark = NULL, decimal.mark = NULL, currency = "TRY", trim = TRUE, ... )
name |
The name of the scale. Used as the axis or legend title. If
|
breaks |
One of:
|
minor_breaks |
One of:
|
guide |
A function used to create a guide or its name. See
|
n.breaks |
An integer guiding the number of major breaks. The algorithm
may choose a slightly different number to ensure nice break labels. Will
only have an effect if |
labels |
One of:
|
limits |
One of:
|
expand |
For position scales, a vector of range expansion constants used to add some
padding around the data to ensure that they are placed some distance
away from the axes. Use the convenience function |
oob |
One of:
|
na.value |
Missing values will be replaced with this value. |
trans |
|
position |
For position scales, The position of the axis.
|
sec.axis |
|
accuracy |
A number to round to. Use (e.g.) Applied to rescaled data. |
scale |
A scaling factor: |
prefix |
Additional text to display before the number. The suffix is
applied to absolute value before |
suffix |
Additional text to display after the number. |
big.mark |
Character used between every 3 digits to separate thousands.
The default ( |
decimal.mark |
The character to be used to indicate the numeric
decimal point. The default ( |
trim |
Logical, if |
... |
Other arguments passed on to |
currency |
currency symbol |
the number ones format axis text in decimal format.
the percent ones format axis text as percentages.
the currency ones format axis text as currencies.
A ggplot2 scale, for use in a +-chained plot construction.
# not rendered via demo_number(): several locales' group/currency signs # aren't in the check device's font, so only the (unrendered) scale # objects are shown scale_x_number_tr() scale_x_percent_tr() scale_x_currency_tr()# not rendered via demo_number(): several locales' group/currency signs # aren't in the check device's font, so only the (unrendered) scale # objects are shown scale_x_number_tr() scale_x_percent_tr() scale_x_currency_tr()
The scale_xxx_xxx family of functions makes it easy to format axis text in decimal format, as percentages or as currencies.
scale_x_number_us( name = waiver(), breaks = waiver(), minor_breaks = waiver(), guide = waiver(), n.breaks = NULL, labels = waiver(), limits = NULL, expand = waiver(), oob = censor, na.value = NA_real_, trans = "identity", position = "bottom", sec.axis = waiver(), accuracy = 1, scale = 1, prefix = "", suffix = "", big.mark = NULL, decimal.mark = NULL, trim = TRUE, ... ) scale_y_number_us( name = waiver(), breaks = waiver(), minor_breaks = waiver(), guide = waiver(), n.breaks = NULL, labels = waiver(), limits = NULL, expand = waiver(), oob = censor, na.value = NA_real_, trans = "identity", position = "left", sec.axis = waiver(), accuracy = 1, scale = 1, prefix = "", suffix = "", big.mark = NULL, decimal.mark = NULL, trim = TRUE, ... ) scale_x_percent_us( name = waiver(), breaks = waiver(), minor_breaks = waiver(), guide = waiver(), n.breaks = NULL, labels = waiver(), limits = NULL, expand = waiver(), oob = censor, na.value = NA_real_, trans = "identity", position = "bottom", sec.axis = waiver(), accuracy = 1, scale = 100, prefix = NULL, suffix = NULL, big.mark = NULL, decimal.mark = NULL, trim = TRUE, ... ) scale_y_percent_us( name = waiver(), breaks = waiver(), minor_breaks = waiver(), guide = waiver(), n.breaks = NULL, labels = waiver(), limits = NULL, expand = waiver(), oob = censor, na.value = NA_real_, trans = "identity", position = "left", sec.axis = waiver(), accuracy = 1, scale = 100, prefix = NULL, suffix = NULL, big.mark = NULL, decimal.mark = NULL, trim = TRUE, ... ) scale_x_currency_us( name = waiver(), breaks = waiver(), minor_breaks = waiver(), guide = waiver(), n.breaks = NULL, labels = waiver(), limits = NULL, expand = waiver(), oob = censor, na.value = NA_real_, trans = "identity", position = "bottom", sec.axis = waiver(), accuracy = 1, scale = 1, prefix = NULL, suffix = NULL, big.mark = NULL, decimal.mark = NULL, currency = "USD", trim = TRUE, ... ) scale_y_currency_us( name = waiver(), breaks = waiver(), minor_breaks = waiver(), guide = waiver(), n.breaks = NULL, labels = waiver(), limits = NULL, expand = waiver(), oob = censor, na.value = NA_real_, trans = "identity", position = "bottom", sec.axis = waiver(), accuracy = 1, scale = 1, prefix = NULL, suffix = NULL, big.mark = NULL, decimal.mark = NULL, currency = "USD", trim = TRUE, ... )scale_x_number_us( name = waiver(), breaks = waiver(), minor_breaks = waiver(), guide = waiver(), n.breaks = NULL, labels = waiver(), limits = NULL, expand = waiver(), oob = censor, na.value = NA_real_, trans = "identity", position = "bottom", sec.axis = waiver(), accuracy = 1, scale = 1, prefix = "", suffix = "", big.mark = NULL, decimal.mark = NULL, trim = TRUE, ... ) scale_y_number_us( name = waiver(), breaks = waiver(), minor_breaks = waiver(), guide = waiver(), n.breaks = NULL, labels = waiver(), limits = NULL, expand = waiver(), oob = censor, na.value = NA_real_, trans = "identity", position = "left", sec.axis = waiver(), accuracy = 1, scale = 1, prefix = "", suffix = "", big.mark = NULL, decimal.mark = NULL, trim = TRUE, ... ) scale_x_percent_us( name = waiver(), breaks = waiver(), minor_breaks = waiver(), guide = waiver(), n.breaks = NULL, labels = waiver(), limits = NULL, expand = waiver(), oob = censor, na.value = NA_real_, trans = "identity", position = "bottom", sec.axis = waiver(), accuracy = 1, scale = 100, prefix = NULL, suffix = NULL, big.mark = NULL, decimal.mark = NULL, trim = TRUE, ... ) scale_y_percent_us( name = waiver(), breaks = waiver(), minor_breaks = waiver(), guide = waiver(), n.breaks = NULL, labels = waiver(), limits = NULL, expand = waiver(), oob = censor, na.value = NA_real_, trans = "identity", position = "left", sec.axis = waiver(), accuracy = 1, scale = 100, prefix = NULL, suffix = NULL, big.mark = NULL, decimal.mark = NULL, trim = TRUE, ... ) scale_x_currency_us( name = waiver(), breaks = waiver(), minor_breaks = waiver(), guide = waiver(), n.breaks = NULL, labels = waiver(), limits = NULL, expand = waiver(), oob = censor, na.value = NA_real_, trans = "identity", position = "bottom", sec.axis = waiver(), accuracy = 1, scale = 1, prefix = NULL, suffix = NULL, big.mark = NULL, decimal.mark = NULL, currency = "USD", trim = TRUE, ... ) scale_y_currency_us( name = waiver(), breaks = waiver(), minor_breaks = waiver(), guide = waiver(), n.breaks = NULL, labels = waiver(), limits = NULL, expand = waiver(), oob = censor, na.value = NA_real_, trans = "identity", position = "bottom", sec.axis = waiver(), accuracy = 1, scale = 1, prefix = NULL, suffix = NULL, big.mark = NULL, decimal.mark = NULL, currency = "USD", trim = TRUE, ... )
name |
The name of the scale. Used as the axis or legend title. If
|
breaks |
One of:
|
minor_breaks |
One of:
|
guide |
A function used to create a guide or its name. See
|
n.breaks |
An integer guiding the number of major breaks. The algorithm
may choose a slightly different number to ensure nice break labels. Will
only have an effect if |
labels |
One of:
|
limits |
One of:
|
expand |
For position scales, a vector of range expansion constants used to add some
padding around the data to ensure that they are placed some distance
away from the axes. Use the convenience function |
oob |
One of:
|
na.value |
Missing values will be replaced with this value. |
trans |
|
position |
For position scales, The position of the axis.
|
sec.axis |
|
accuracy |
A number to round to. Use (e.g.) Applied to rescaled data. |
scale |
A scaling factor: |
prefix |
Additional text to display before the number. The suffix is
applied to absolute value before |
suffix |
Additional text to display after the number. |
big.mark |
Character used between every 3 digits to separate thousands.
The default ( |
decimal.mark |
The character to be used to indicate the numeric
decimal point. The default ( |
trim |
Logical, if |
... |
Other arguments passed on to |
currency |
currency symbol |
the number ones format axis text in decimal format.
the percent ones format axis text as percentages.
the currency ones format axis text as currencies.
A ggplot2 scale, for use in a +-chained plot construction.
demo_number(c(-1e6, 1e6), scale_name = "number_us") scale_x_number_us() demo_number(c(-1, 1), scale_name = "percent_us") scale_x_percent_us() demo_number(c(-1e4, 1e4), scale_name = "currency_us") scale_x_currency_us()demo_number(c(-1e6, 1e6), scale_name = "number_us") scale_x_number_us() demo_number(c(-1, 1), scale_name = "percent_us") scale_x_percent_us() demo_number(c(-1e4, 1e4), scale_name = "currency_us") scale_x_currency_us()
The scale_xxx_xxx family of functions makes it easy to format axis text in decimal format, as percentages or as currencies.
scale_x_number_za( name = waiver(), breaks = waiver(), minor_breaks = waiver(), guide = waiver(), n.breaks = NULL, labels = waiver(), limits = NULL, expand = waiver(), oob = censor, na.value = NA_real_, trans = "identity", position = "bottom", sec.axis = waiver(), accuracy = 1, scale = 1, prefix = "", suffix = "", big.mark = NULL, decimal.mark = NULL, trim = TRUE, ... ) scale_x_percent_za( name = waiver(), breaks = waiver(), minor_breaks = waiver(), guide = waiver(), n.breaks = NULL, labels = waiver(), limits = NULL, expand = waiver(), oob = censor, na.value = NA_real_, trans = "identity", position = "bottom", sec.axis = waiver(), accuracy = 1, scale = 100, prefix = NULL, suffix = NULL, big.mark = NULL, decimal.mark = NULL, trim = TRUE, ... ) scale_x_currency_za( name = waiver(), breaks = waiver(), minor_breaks = waiver(), guide = waiver(), n.breaks = NULL, labels = waiver(), limits = NULL, expand = waiver(), oob = censor, na.value = NA_real_, trans = "identity", position = "bottom", sec.axis = waiver(), accuracy = 1, scale = 1, prefix = NULL, suffix = NULL, big.mark = NULL, decimal.mark = NULL, currency = "ZAR", trim = TRUE, ... ) scale_y_number_za( name = waiver(), breaks = waiver(), minor_breaks = waiver(), guide = waiver(), n.breaks = NULL, labels = waiver(), limits = NULL, expand = waiver(), oob = censor, na.value = NA_real_, trans = "identity", position = "left", sec.axis = waiver(), accuracy = 1, scale = 1, prefix = "", suffix = "", big.mark = NULL, decimal.mark = NULL, trim = TRUE, ... ) scale_y_percent_za( name = waiver(), breaks = waiver(), minor_breaks = waiver(), guide = waiver(), n.breaks = NULL, labels = waiver(), limits = NULL, expand = waiver(), oob = censor, na.value = NA_real_, trans = "identity", position = "left", sec.axis = waiver(), accuracy = 1, scale = 100, prefix = NULL, suffix = NULL, big.mark = NULL, decimal.mark = NULL, trim = TRUE, ... ) scale_y_currency_za( name = waiver(), breaks = waiver(), minor_breaks = waiver(), guide = waiver(), n.breaks = NULL, labels = waiver(), limits = NULL, expand = waiver(), oob = censor, na.value = NA_real_, trans = "identity", position = "left", sec.axis = waiver(), accuracy = 1, scale = 1, prefix = NULL, suffix = NULL, big.mark = NULL, decimal.mark = NULL, currency = "ZAR", trim = TRUE, ... )scale_x_number_za( name = waiver(), breaks = waiver(), minor_breaks = waiver(), guide = waiver(), n.breaks = NULL, labels = waiver(), limits = NULL, expand = waiver(), oob = censor, na.value = NA_real_, trans = "identity", position = "bottom", sec.axis = waiver(), accuracy = 1, scale = 1, prefix = "", suffix = "", big.mark = NULL, decimal.mark = NULL, trim = TRUE, ... ) scale_x_percent_za( name = waiver(), breaks = waiver(), minor_breaks = waiver(), guide = waiver(), n.breaks = NULL, labels = waiver(), limits = NULL, expand = waiver(), oob = censor, na.value = NA_real_, trans = "identity", position = "bottom", sec.axis = waiver(), accuracy = 1, scale = 100, prefix = NULL, suffix = NULL, big.mark = NULL, decimal.mark = NULL, trim = TRUE, ... ) scale_x_currency_za( name = waiver(), breaks = waiver(), minor_breaks = waiver(), guide = waiver(), n.breaks = NULL, labels = waiver(), limits = NULL, expand = waiver(), oob = censor, na.value = NA_real_, trans = "identity", position = "bottom", sec.axis = waiver(), accuracy = 1, scale = 1, prefix = NULL, suffix = NULL, big.mark = NULL, decimal.mark = NULL, currency = "ZAR", trim = TRUE, ... ) scale_y_number_za( name = waiver(), breaks = waiver(), minor_breaks = waiver(), guide = waiver(), n.breaks = NULL, labels = waiver(), limits = NULL, expand = waiver(), oob = censor, na.value = NA_real_, trans = "identity", position = "left", sec.axis = waiver(), accuracy = 1, scale = 1, prefix = "", suffix = "", big.mark = NULL, decimal.mark = NULL, trim = TRUE, ... ) scale_y_percent_za( name = waiver(), breaks = waiver(), minor_breaks = waiver(), guide = waiver(), n.breaks = NULL, labels = waiver(), limits = NULL, expand = waiver(), oob = censor, na.value = NA_real_, trans = "identity", position = "left", sec.axis = waiver(), accuracy = 1, scale = 100, prefix = NULL, suffix = NULL, big.mark = NULL, decimal.mark = NULL, trim = TRUE, ... ) scale_y_currency_za( name = waiver(), breaks = waiver(), minor_breaks = waiver(), guide = waiver(), n.breaks = NULL, labels = waiver(), limits = NULL, expand = waiver(), oob = censor, na.value = NA_real_, trans = "identity", position = "left", sec.axis = waiver(), accuracy = 1, scale = 1, prefix = NULL, suffix = NULL, big.mark = NULL, decimal.mark = NULL, currency = "ZAR", trim = TRUE, ... )
name |
The name of the scale. Used as the axis or legend title. If
|
breaks |
One of:
|
minor_breaks |
One of:
|
guide |
A function used to create a guide or its name. See
|
n.breaks |
An integer guiding the number of major breaks. The algorithm
may choose a slightly different number to ensure nice break labels. Will
only have an effect if |
labels |
One of:
|
limits |
One of:
|
expand |
For position scales, a vector of range expansion constants used to add some
padding around the data to ensure that they are placed some distance
away from the axes. Use the convenience function |
oob |
One of:
|
na.value |
Missing values will be replaced with this value. |
trans |
|
position |
For position scales, The position of the axis.
|
sec.axis |
|
accuracy |
A number to round to. Use (e.g.) Applied to rescaled data. |
scale |
A scaling factor: |
prefix |
Additional text to display before the number. The suffix is
applied to absolute value before |
suffix |
Additional text to display after the number. |
big.mark |
Character used between every 3 digits to separate thousands.
The default ( |
decimal.mark |
The character to be used to indicate the numeric
decimal point. The default ( |
trim |
Logical, if |
... |
Other arguments passed on to |
currency |
currency symbol |
the number ones format axis text in decimal format.
the percent ones format axis text as percentages.
the currency ones format axis text as currencies.
A ggplot2 scale, for use in a +-chained plot construction.
# not rendered via demo_number(): several locales' group/currency signs # aren't in the check device's font, so only the (unrendered) scale # objects are shown scale_x_number_za() scale_x_percent_za() scale_x_currency_za()# not rendered via demo_number(): several locales' group/currency signs # aren't in the check device's font, so only the (unrendered) scale # objects are shown scale_x_number_za() scale_x_percent_za() scale_x_currency_za()
A convenience function which returns a dataframe of available locales and countries.
show_locales()show_locales()
a dataframe
show_locales()show_locales()