Learn R Programming

DR.SC (version 3.7)

mbicPlot: MBIC plot visualization

Description

Intuitive way of visualizing how modified BIC values changes across different number of clusters

Usage

mbicPlot(seu, criteria="MBIC")

Value

return a ggplot2 object.

Arguments

seu

an object of class Seurat revised by DR.SC with argument K=NULL.

criteria

a string specifying the information criteria such as AIC, BIC and MBIC to be plotted, default as MBIC.

Author

Wei Liu

Details

Nothing

References

None

See Also

None

Examples

Run this code

  ## we generate the spatial transcriptomics data with lattice neighborhood, i.e. ST platform.
  library(Seurat)
  data(seu)
  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)

Run the code above in your browser using DataLab