Learn R Programming

scales (version 0.1.0)

trans_format: Format labels after transformation.

Description

Format labels after transformation.

Usage

trans_format(trans, format = scientific_format())

Arguments

trans
transformation to apply
format
additional formatter to apply after transformation

Value

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

Examples

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

Run the code above in your browser using DataLab