Skip to contents

Ratio labels

Usage

label_divMult(logscale = FALSE, base = exp(1), slashStar = TRUE)

Arguments

logscale

Logical, are breaks provided on the log scale (default is FALSE)?

base

a positive or complex number: the base with respect to which logarithms are computed. Defaults to \(e\)=exp(1).

slashStar

Logical, should division and multiplication symbols be "*" and "/" (default)? Prettier symbols \(\times, \div\) are available when slashStar == FALSE, but font libraries and text size may make distinguishing \(\div\) from \(+\) difficult.

Value

Function for generating labeling expressions based on breaks

See also

Examples

label_divMult()(c(1:4,2))
#> expression(1, paste(" *", 2), paste(" *", 3), paste(" *", 4), 
#>     paste(" *", 2))