flog transform function constructor. It is different from flowCore version of logtGml2 in the way that it reset negative input so that no NAN will be returned.

flowjo_log_trans(
  decade = 4.5,
  offset = 1,
  scale = 1,
  n = 6,
  equal.space = FALSE
)

Arguments

decade

total number of decades (i.e. log(max)-log(min)

offset

offset to the orignal input(i.e. min value)

scale

the linear scale factor

n

desired number of breaks (the actual number will be different depending on the data range)

equal.space

whether breaks at equal-spaced intervals

Value

flog(or its inverse) transform function

Examples

trans <- flowjo_log_trans() data.raw <- c(1,1e2,1e3) data.trans <- trans[["transform"]](data.raw) data.trans
#> [1] 0.0000000 0.4444444 0.6666667
inverse.trans <- trans[["inverse"]] inverse.trans(data.trans)
#> [1] 1 100 1000
#negative input data.raw <- c(-10,1e2,1e3) data.trans <- trans[["transform"]](data.raw) data.trans
#> [1] 0.0000000 0.4444444 0.6666667
inverse.trans(data.trans)#we lose the original value at lower end since flog can't restore negative value
#> [1] 1 100 1000
#different trans <- flowjo_log_trans(decade = 3, offset = 30) data.trans <- trans[["transform"]](data.raw) data.trans
#> [1] 0.0000000 0.1742929 0.5076262
inverse.trans <- trans[["inverse"]] inverse.trans(data.trans)
#> [1] 30 100 1000