View source: R/visualizationR.R
mbicPlot | R Documentation |
Intuitive way of visualizing how modified BIC values changes across different number of clusters
mbicPlot(seu, criteria="MBIC")
seu |
an object of class |
criteria |
a string specifying the information criteria such as AIC, BIC and MBIC to be plotted, default as MBIC. |
Nothing
return a ggplot2 object.
nothing
Wei Liu
None
None
## we generate the spatial transcriptomics data with lattice neighborhood, i.e. ST platform.
seu <- gendata_RNAExp(height=20, width=20,p=100, K=4)
library(Seurat)
seu <- NormalizeData(seu)
# choose spatially variable features
seu <- FindSVGs(seu)
## Just for illustrating the usage of mbicPlot
seu[["RNA"]]@misc[['icMat']] <- data.frame(K=2:5, MBIC=c(105, 101, 99, 108))
mbicPlot(seu)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.