PlotTree {CHETAH}R Documentation

Plots the chetah classification tree with nodes numbered

Description

Plots the chetah classification tree with nodes numbered

Usage

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

PlotTree(input = input_mel)

[Package CHETAH version 1.0.3 Index]