View source: R/seuratFunctions.R
plotSeuratReduction | R Documentation |
plotSeuratReduction Plots the selected dimensionality reduction method
plotSeuratReduction(
inSCE,
useReduction = c("pca", "ica", "tsne", "umap"),
showLegend = FALSE,
groupBy = NULL,
splitBy = NULL
)
inSCE |
(sce) object which has the selected dimensionality reduction algorithm already computed and stored |
useReduction |
Dimentionality reduction to plot. One of "pca", "ica",
"tsne", or "umap". Default |
showLegend |
Select if legends and labels should be shown on the output
plot or not. Either "TRUE" or "FALSE". Default |
groupBy |
Specify a colData column name that be used for grouping.
Default is |
splitBy |
Specify a colData column name that be used for splitting the
output plot. Default is |
plot object
data(scExample, package = "singleCellTK")
## Not run:
sce <- runSeuratNormalizeData(sce, useAssay = "counts")
sce <- runSeuratFindHVG(sce, useAssay = "counts")
sce <- runSeuratScaleData(sce, useAssay = "counts")
sce <- runSeuratPCA(sce, useAssay = "counts")
plotSeuratReduction(sce, useReduction = "pca")
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.