flow_breaks | R Documentation |
It is mainly used as helper function to construct breaks function used by 'trans_new'.
flow_breaks(x, n = 6, equal.space = FALSE, trans.fun, inverse.fun)
x |
the raw data values |
n |
desired number of breaks (the actual number will be different depending on the data range) |
equal.space |
whether breaks at equal-spaced intervals |
trans.fun |
the transform function (only needed when equal.space is TRUE) |
inverse.fun |
the inverse function (only needed when equal.space is TRUE) |
either 10^n intervals or equal-spaced(after transformed) intervals in raw scale.
library(flowCore) data(GvHD) fr <- GvHD[[1]] data.raw <- exprs(fr)[, "FL1-H"] flow_breaks(data.raw) trans <- logicleTransform() inv <- inverseLogicleTransform(trans = trans) myBrks <- flow_breaks(data.raw, equal.space = TRUE, trans = trans, inv = inv) round(myBrks) #to verify it is equally spaced at transformed scale print(trans(myBrks))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.