ez_labels | R Documentation |
Function for formatting numeric labels
ez_labels(
x,
prepend = "",
append = "",
as_factor = FALSE,
round = Inf,
signif = Inf,
sign = FALSE
)
x |
numeric |
prepend |
character |
append |
character |
as_factor |
logical |
round |
numeric passed to |
signif |
numeric passed to |
sign |
logical. Adds a plus sign to positive numbers |
y
ez_labels(10^(0:10))
ez_labels(2000, append = " apples")
ez_labels(0:10, append = " apples", as_factor = TRUE)
ez_labels(c(0, 0.1, 0.01, 0.001, 0.0001))
ez_labels(c(-1, -0.0001, 0, 0.0001, 1), round = 2, sign = FALSE)
ez_labels(c(-1, -0.0001, 0, 0.0001, 1), round = 2, sign = TRUE)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.