Learn R Programming

flowMerge (version 2.20.0)

ptree: Generate a Function to Plot The Merging Tree

Description

This function generates and returns a new function which can be used to plot the merging tree for a flowMerge model, with nodes highlighted based on the expression of different parameters for each cell population.

Usage

ptree(x,y)

Arguments

x
A character string of the name of the variable holding the list of merged models returned from flowMerge
y
The index of the best fitting merged model in that list

Value

Returns a function

Side Effects

A plot will be drawn on the current device.

Details

ptree will generate a function that will plot the merging tree from a flowMerge model. Nodes will be colored by the intensity of staining of that population in a given dimension. Calling f<-ptree("model.name",fitPiecewiseLinreg(model.name)) will assign the function to f. Calling f(3) will plot the merging tree with nodes hightlighted according to parameter 3, presuming that there are that many parameters in the model.

See Also

merge.