Plot Decision trees as gates

plot_gates(object, tree, terminal_node)

Arguments

object

a seurat object that will be used to draw the plots

tree

a decision tree that will be used to construct the gates

terminal_node

the name of the terminal node that will be used for the gating

Value

a ggplot object.

Examples

plot_gates(Seurat::pbmc_small, fit_ctree(Seurat::pbmc_small), '5')