ez_labels: Function for formatting numeric labels

View source: R/ez_labels.R

ez_labelsR Documentation

Function for formatting numeric labels

Description

Function for formatting numeric labels

Usage

ez_labels(
  x,
  prepend = "",
  append = "",
  as_factor = FALSE,
  round = Inf,
  signif = Inf
)

Arguments

x

numeric

prepend

character

append

character

as_factor

logical

round

numeric passed to round()

signif

numeric passed to signif()

Value

y

Examples

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))

wkostelecki/ezplot documentation built on Feb. 1, 2024, 10:58 p.m.