Learn R Programming

scGate (version 1.7.0)

plot_tree: 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)

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.

Arguments

model

A scGate model to be visualized

box.size

Box size

edge.text.size

Edge text size

Examples

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

Run the code above in your browser using DataLab