breakpoints.ProbBin {rflowcyt} | R Documentation |
To define the break points in data.var in which there are N observations in each bin.
breakpoints.ProbBin(data.var, N)
data.var |
a vector of numeric data values for the break points to be determined |
N |
the number of data points between two breaks |
This function is used to determine the break points that can be used to
specify a ProbBin.FCS
object as well as a hist
object.
Please note that each bin in the histograms (in ProbBin.FCS
) will be determined
such that the end point is included (ie, for a<b, (a,b] is the bin
interval for break points a & b.
Thus, the output of this function will have min(data.var)-1 as the first break point and max(data.var) as the last break point such that (min(data.var)-1, min(data.var)] is the first bin/interval of the break points.
a vector of the numerical breaks
Zoe Moodie, A.J. Rossini, J.Y. Wan
Mario Roederer, et al. "Probability Binning Comparison: A Metric for Quantitating Univariate Distribution Differences" Cytometry 45:37-46 (2001).
x <- 1:23 N <- 3 ## making a series of cutpoints which have ## an equal number of counts in each bin breaks <- breakpoints.ProbBin(x, N) hist(x, br=breaks, plot=FALSE)