trans_format: Format labels after transformation

View source: R/labels-retired.R

trans_formatR Documentation

Format labels after transformation

Description

[Superseded]

Usage

trans_format(trans, format = scientific_format())

Arguments

trans

transformation to apply

format

additional formatter to apply after transformation

Value

a function with single parameter x, a numeric vector, that returns a character vector of list of expressions

Examples

tf <- trans_format("log10", scientific_format())
tf(10^1:6)

scales documentation built on Aug. 20, 2022, 1:05 a.m.