Learn R Programming

DR.SC (version 3.7)

drscPlot: tNSE or UMAP plot visualization

Description

Intuitive way of visualizing how cell types changes across the embeddings obatined by DR-SC.

Usage

drscPlot(seu, dims=1:5, visu.method='tSNE',...)

Value

return a ggplot2 object.

Arguments

seu

an object of class "Seurat" obtained by DR.SC.

dims

a positive integer to specify the number of latent features for visualiztion.

visu.method

a string including 'tSNE' or "UMAP".

...

Other arguments passing to DimPlot function.

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.
data(seu)
library(Seurat)
seu <- NormalizeData(seu)
# choose spatially variable features
seu <- FindSVGs(seu)

# use SVGs to fit DR.SC model
# maxIter = 2 is only used for illustration, and user can use default.
seu1 <- DR.SC(seu, K=4,platform = 'ST', maxIter = 2,verbose=FALSE)
drscPlot(seu1)

Run the code above in your browser using DataLab