scales (version 1.3.0)

trans_format: Format labels after transformation

Description

[Superseded]

Usage

trans_format(trans, format = scientific_format())

Value

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

Arguments

trans

transformation to apply

format

additional formatter to apply after transformation

Examples

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

Run the code above in your browser using DataLab