flow_breaks.RdIt 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.
#> [1] 100 1000trans <- logicleTransform() inv <- inverseLogicleTransform(trans = trans) myBrks <- flow_breaks(data.raw, equal.space = TRUE, trans = trans, inv = inv) round(myBrks)#> [1] -111 62 395 2172 13235 82970#> [1] 0.0 0.8 1.6 2.4 3.2 4.0