powered by
View scGate model as a decision tree (require ggparty package)
plot_tree(model, box.size = 8, edge.text.size = 4)
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.
A scGate model to be visualized
Box size
Edge text size
library(ggparty) models <- get_scGateDB() plot_tree(models$human$generic$Tcell)
Run the code above in your browser using DataLab