newZeros: Convert concentrations of zero to non-zero values in dose...

Description Usage Arguments Value Examples

Description

Tool to adjust concentration values of zero to non-zero values based on the average gap between concentraions in dose response curve. Adjust zero concentrations to be two average gaps less than the lower non-zero concentration. Useful for plotting on with 'scale_x_log10()'

Usage

1
newZeros(vec, is_log = F)

Arguments

vec

A numeric vector with the concentrations in a dose response curve

is_log

Default is FALSE. Are the concentration values in 'vec' log transformed?

Value

A numeric value to be assigned as the new non-zero concentration to represent actual concentrations of zero.

Examples

1
2
3
drc_concs <- c(0, .3, 1, 3, 10, 30, 100)
drc_concs[drc_concs == 0] <- newZeros(drc_concs)
drc_concs

stevehoang/assayr documentation built on May 24, 2019, 7:20 a.m.