Skip to contents

For ggplot2 scales.

Usage

itrans_blq_linear(lloq)

itrans_blq_log(lloq, base)

Arguments

lloq

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

base

The base for the logarithm

Value

A function of x that replaces x < lloq with lloq

Functions

  • itrans_blq_log(): Log-scale inverse transform

Examples

itrans_blq_linear(lloq=1)(c(0.5, 1, 5))
#> [1] 1 1 5
itrans_blq_log(lloq=1, base=10)(c(-0.3, 0, 1))
#> [1]  1  1 10