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.
A character string of the name of the variable holding the list of merged models returned from flowMerge
The index of the best fitting merged model in that list
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(3) will plot the merging tree with nodes hightlighted according to parameter 3, presuming that there are that many parameters in the model.
Returns a function
A plot will be drawn on the current device.
Greg Finak <email@example.com>
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.