Skip to contents

For ggplot2 scales.

Usage

ftrans_blq_linear(lloq, multiplier)

ftrans_blq_log(lloq, multiplier, base = 10)

Arguments

lloq

The value of the lower limit of quantification as a numeric scalar

multiplier

When data are < lloq, they are replaced by lloq*multiplier for display.

base

The base for the logarithm

Value

A function of x that replaces x < lloq with lloq*multiplier

Functions

  • ftrans_blq_log(): Log-scale transformation

Examples

ftrans_blq_linear(lloq=1, multiplier=0.5)(c(0.2, 1, 5))
#> [1] 0.5 1.0 5.0
ftrans_blq_log(lloq=1, multiplier=0.5)(c(0.2, 1, 5))
#> [1] -0.30103  0.00000  0.69897