Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

trans_format

Format labels after transformation


Description

[Retired]

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

Scale Functions for Visualization

v1.1.1
MIT + file LICENSE
Authors
Hadley Wickham [aut, cre], Dana Seidel [aut], RStudio [cph]
Initial release

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.