Skip to contents

Plot the distribution of the observed cells at each node of the binary tree built using CytomeTree.

Usage

plot_nodes(
  CytomeTreeObj,
  nodes = NULL,
  nodesPerCol = NULL,
  nodesPerRow = NULL,
  ...
)

Arguments

CytomeTreeObj

An object of class CytomeTree.

nodes

A list of character elements containing the name of the nodes for which the distribution is to be plotted. Default is NULL, and plots the distribution for each node.

nodesPerCol

an integer specifying the number of plots to be displayed per column when plotting multiple nodes at once. Default is NULL.

nodesPerRow

an integer specifying the number of plots to be displayed per row when plotting multiple nodes at once. Default is NULL.

...

further arguments to be passed to plot_grid.

Value

a list of ggplot2 plot objects, containing each node plot.

Details

if both nodesPerCol and nodesPerRow are NULL then all the nodes are plotted on a single page.

"GM" stands for "Gaussian mixture" and "KDE" stands for "Kernel Density Estimation".

Author

Chariff Alkhassim, Boris Hejblum

Examples


data(DLBCL)
myct <- CytomeTree(DLBCL[, c("FL1", "FL2", "FL4")], minleaf = 1, t=.1)
#> 
  |                                                                            
  |                                                                      |   0%
  |                                                                            
  |=======================                                               |  33%
  |                                                                            
  |===============================================                       |  67%
  |                                                                            
  |======================================================================| 100%
plot_nodes(myct)