pickInit: Interactively select model starting values

Description Usage Arguments Details Value Author(s) Examples

View source: R/FlowHist.R

Description

Prompts the user to select the peaks to use as initial values for non-linear regression on a plot of the histogram data.

Usage

1

Arguments

fh

A FlowHist object

Details

The raw histogram data are plotted, and the user is prompted to select the peak positions to use as starting values in the NLS procedure. This is useful when the automated peak-finding algorithm fails to discriminate between overlapping peaks, or is confused by noise.

Note that the A peak must be lower (smaller mean, further left) than the B peak. If the user selects the A peak with a higher mean than the B peak, the peaks will be swapped to ensure A is lower.

Value

pickInit returns the FlowHist object with its initial value slot updated.

Author(s)

Tyler Smith

Examples

1
2
3
4
5
6
7
8
library(flowPloidyData) 
fh2 <- FlowHist(file = flowPloidyFiles[2], channel = "FL3.INT.LIN")
plot(fh2, init = TRUE) ## automatic peak estimates
## Not run: 
fh2 <- pickInit(fh2)   ## hand-pick peak estimates

## End(Not run)
plot(fh2, init = TRUE) ## revised starting values

flowPloidy documentation built on May 31, 2017, 3:02 p.m.

Search within the flowPloidy package
Search all R packages, documentation and source code