ptree: Generate a Function to Plot The Merging Tree

Description Usage Arguments Details Value Side Effects Author(s) See Also

View source: R/flowMerge.R

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

1
2
 
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

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.

Value

Returns a function

Side Effects

A plot will be drawn on the current device.

Author(s)

Greg Finak <gfinak@fhcrc.org>

See Also

merge.


flowMerge documentation built on Nov. 8, 2020, 8:08 p.m.