flowJo.flog {flowWorkspace} | R Documentation

## flog transform function

### Description

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.

### Usage

    flowJo.flog(decade = 4.5, offset = 1, max_val = 262144, min_val = 0,
      scale = 1, inverse = FALSE)

### Arguments

`decade` | number of decades
`offset` | offset to the orignal input
`max_val` | top of scale value
`min_val` | lower bound of scaled value (where negative raw value gets truncated at)
`scale` | the linear scale factor
`inverse` | whether return the inverse function

### Value

flog(or its inverse) transform function

### Examples

    trans <- flowJo.flog()
    data.raw <- c(1,1e2,1e3)
    data.trans <- trans(data.raw)
    data.trans

    inverse.trans <- flowJo.flog(inverse = TRUE)
    inverse.trans(data.trans)

    #negative input
    data.raw <- c(-10,1e2,1e3)
    data.trans <- trans(data.raw)
    data.trans
    inverse.trans(data.trans)#we lose the original value at lower end since flog can't restore negative value

    #different
    trans <- flowJo.flog(decade = 3, max_val = 1e3)
    data.trans <- trans(data.raw)
    data.trans
    inverse.trans <- flowJo.flog(decade = 3, max_val = 1e3, inverse = TRUE)
    inverse.trans(data.trans)

[Package flowWorkspace version 3.30.2 Index]