updateFlowHist {flowPloidy} | R Documentation

## updateFlowHist

### Description

Update, and optionally re-analyze, a `FlowHist` object

### Usage

    updateFlowHist(fh, linearity = NULL, debris = NULL, samples = NULL,
      analyze = TRUE)

### Arguments

`fh` | a `FlowHist` object
`linearity` | character, either "variable", the default, or "fixed". If "fixed", linearity is fixed at 2; if "variable", linearity is fit as a model parameter.
`debris` | character, either "SC", the default, or "MC", to set the debris model component to the Single-Cut or Multi-Cut models.
`samples` | integer, the number of samples in the data
`analyze` | logical, if TRUE the updated model will be analyzed immediately

### Details

Allows users to switch the debris model from Single-Cut to Multi-Cut (or vice-versa), or to toggle linearity between fixed and variable.

### Value

a `FlowHist` object with the modified values of linearity and/or debris, and, if `analyze` was TRUE, a new NLS fitting

### Author(s)

Tyler Smith

### Examples

    ## defaults to 256 bins:
    library(flowPloidyData)
    fh1 <- FlowHist(file = flowPloidyFiles[1], channel = "FL3.INT.LIN")
    ## default is Single-Cut, change that to Multi-Cut:
    fh1mc <- updateFlowHist(fh1, debris = "MC")
    plot(fh1)

[Package flowPloidy version 1.8.0 Index]