Interactively select model starting values

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.

The normal use, pickPeaks is called from pickInit, rather than directly by the user.

Value

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

pickPeaks returns a matrix with each peak as a row, with the mean (position) in the first column, and the height (intensity) in the second column.

Author(s)

Tyler Smith

Examples

1
2
3
4
5
6
7
8
library(flowPloidyData) 
fh2 <- FlowHist(file = flowPloidyFiles[12], 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