flowjo_log_trans | R Documentation |
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
)
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 |
flog(or its inverse) transform function
trans <- flowjo_log_trans()
data.raw <- c(1,1e2,1e3)
data.trans <- trans[["transform"]](data.raw)
data.trans
inverse.trans <- trans[["inverse"]]
inverse.trans(data.trans)
#negative input
data.raw <- c(-10,1e2,1e3)
data.trans <- trans[["transform"]](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_log_trans(decade = 3, offset = 30)
data.trans <- trans[["transform"]](data.raw)
data.trans
inverse.trans <- trans[["inverse"]]
inverse.trans(data.trans)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.