View source: R/violin_functions.R
sci_label | R Documentation |
Convert integers to scientific notation labels
sci_label(in_num, sig_figs = 2, type = "plot")
in_num |
a numeric vector |
sig_figs |
a number indicating how many significant figures should be displayed. |
a character vector with numeric values reformatted in 1.2E3 format
my_numbers <- c(100,15.359,32687,.000468) sci_label(my_numbers) sci_label(my_numbers,sig_figs=3)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.