Learn R Programming

ssdtools (version 2.5.0)

ssd_label_comma: Label numbers with significant digits and comma

Description

Label numbers with significant digits and comma

Usage

ssd_label_comma(
  digits = 3,
  ...,
  big.mark = ",",
  decimal.mark = getOption("OutDec", ".")
)

Value

A "labelling" function that takes a vector x and returns a character vector of length(x) giving a label for each input value.

Arguments

digits

A whole number specifying the number of significant figures.

...

Unused.

big.mark

A string specifying the thousands separator.

decimal.mark

A string specifying the numeric decimal point.

See Also

Examples

Run this code
ggplot2::ggplot(data = ssddata::anon_e, ggplot2::aes(x = Conc / 10)) +
  geom_ssdpoint() +
  ggplot2::scale_x_log10(labels = ssd_label_comma())

Run the code above in your browser using DataLab