| plotOriginalTree {ctgGEM} | R Documentation |
Displays the original plots created by the ctgGEM package and stored in the originalTrees slot of a ctgGEMset object.
plotOriginalTree(dataSet, treeType)
dataSet |
a ctgGEMset object |
treeType |
the type of tree to display. Must be one of
|
a ggplot2::ggplot object.
In order to reproduce original plots, the respective package(s) must be installed.
# load HSMMSingleCell package
library(HSMMSingleCell)
# load the data for TSCAN and monocle:
data(HSMM_expr_matrix)
data(HSMM_sample_sheet)
data(HSMM_gene_annotation)
# construct a ctgGEMset
dataSet <- ctgGEMset(exprsData = HSMM_expr_matrix,
phenoData = HSMM_sample_sheet,
featureData = HSMM_gene_annotation)
TSCANinfo(dataSet) <- "ENSG00000000003.10"
# run generate_tree()
dataSet <- generate_tree(dataSet = dataSet, treeType = "TSCAN")
# view names of original trees
names(originalTrees(dataSet))
# plot original trees
plotOriginalTree(dataSet, "TSCANclustering")
plotOriginalTree(dataSet, "TSCANsingleGene")