PlotMST: Plot the visualization of constructed Minimum Spanning Tree...

Description Usage Arguments Value Examples

View source: R/PlotFunctions.R

Description

Plot the visualization of constructed Minimum Spanning Tree based on the clustering results of RCSL

Usage

1
2
3
4
5
6
7
8
PlotMST(
  drData,
  clustRes,
  TrueLabel,
  dataName = "",
  fontSize = 12,
  VisualMethod = "umap"
)

Arguments

drData

preprocessed gene expression data

clustRes

the clustering results identified by RCSL

TrueLabel

the real cell types to color the dots in plot

dataName

the name of the data that will be showed in the plot

fontSize

the font size of the plot

VisualMethod

the method for 2D visualization including UMAP,t-SNE and PCA

Value

MSTPlot ggplot object of the visualization of constructed MST

Examples

1
2
3
4
5
6
gfData <- GenesFilter(yan[1:100,1:15])
TrueLabel <- ann$cell_type1[1:15]
res_SimS <- SimS(gfData)
C <- EstClusters(res_SimS$drData,res_SimS$S)
res_BDSM <- BDSM(res_SimS$S,C)
PlotMST(res_SimS$drData,res_BDSM$y,TrueLabel)

RCSL documentation built on April 19, 2021, 9:06 a.m.