math_format: Add arbitrary expression to a label.
The symbol that will be replace by the label value is .x.
Description
Add arbitrary expression to a label.
The symbol that will be replace by the label value is .x.
Usage
math_format(expr = 10^.x, format = force)
Arguments
expr
expression to use
format
another format function to apply prior to mathematical
transformation - this makes it easier to use floating point numbers in
mathematical expressions.
Value
a function with single parameter x, a numeric vector, that
returns a list of expressions