plot_tree {scGate}R Documentation

Plot model tree

Description

View scGate model as a decision tree (require ggparty package)

Usage

plot_tree(model, box.size = 8, edge.text.size = 4)

Arguments

model

A scGate model to be visualized

box.size

Box size

edge.text.size

Edge text size

Value

A plot of the model as a decision tree. At each level, green boxes indicate the 'positive' (accepted) cell types, red boxed indicate the 'negative' cell types (filtered out). The final Pure population is the bottom right subset in the tree.

Examples

library(ggparty)
models <- get_scGateDB()
plot_tree(models$human$generic$Tcell)

[Package scGate version 1.6.2 Index]