PlotTree: Plots the chetah classification tree with nodes numbered

Description Usage Arguments Value Examples

View source: R/Utils_CHETAH.R

Description

Plots the chetah classification tree with nodes numbered

Usage

1
2
PlotTree(input, col = NULL, col_nodes = NULL, return = FALSE,
  no_bgc = FALSE, plot_limits = c(-0.4, 0.1), labelsize = 6)

Arguments

input

a SingleCellExperiment on which CHETAHclassifier has been run

col

a vector of colors, with the names of the reference cell types

col_nodes

a vector of colors, ordered for node 1 till the last node

return

instead of printing, return the ggplot object

no_bgc

remove the background color from the node numbers

plot_limits

define the Decreasing the former further is usefull when the labels are cut of the plot (default = c(-0,25, 01)).

labelsize

the size of the intermediate and leaf node labels (default = 6)

Value

A ggplot object of the classification tree

Examples

1

jdekanter/CHETAH documentation built on Sept. 20, 2019, 3:31 a.m.