setBins

Description

(Re-) set the bins for a FlowHist object

Usage

1
setBins(fh, bins = 256)

Arguments

fh

a FlowHist object

bins

integer, the number of bins to use in aggregating FCS data

Details

This function sets (or resets) the number of bins to use in aggregating FCS data into a histogram, and generates the corresponding data matrix.

The histData matrix also contains the SCvals column. This is used to calculate the single-cut debris component in the NLS model.

Value

a FlowHist object, with the bins slot set to bins, and the corresonding binned data stored in a matrix in the histData slot. Any previous analysis slots are removed: peaks, comps, model, init, nls, counts, CV, RCS.

Author(s)

Tyler Smith

Examples

1
2
3
4
5
6
7
## defaults to 256 bins:
library(flowPloidyData) 
fh1 <- FlowHist(file = flowPloidyFiles[1], channel = "FL3.INT.LIN")
plot(fh1)
## reset them to 512 bins:
fh1 <- setBins(fh1, 512)
plot(fh1)