| bcat_fmt_scientific | R Documentation |
A wrapper for scales::label_scientific to format a numeric
vector to scientific notation.
bcat_fmt_scientific(x, digits = 3, scale = 1, ...)
x |
a numeric vector |
digits |
number of digits to show before exponent. |
scale |
A scaling factor: |
... |
other arguments passed to label_scientific |
A character vector of scientific-notation labels with the same length
as x.
Other formatting:
bcat_fmt_comma(),
bcat_fmt_date(),
bcat_fmt_dollar(),
bcat_fmt_percent(),
bcat_fmt_pvalue()
bcat_fmt_scientific(c(1:10)*10e5)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.