mbicPlot {DR.SC}R Documentation

MBIC plot visualization

Description

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

Usage

  mbicPlot(seu)

Arguments

seu

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

Details

Nothing

Value

return a ggplot2 object.

Note

nothing

Author(s)

Wei Liu

References

None

See Also

None

Examples


  ## 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@tools$icMat <- data.frame(K=2:5, mbic=c(105, 101, 99, 108))
  mbicPlot(seu)


[Package DR.SC version 2.3 Index]