seuratReductionPlot {singleCellTK}R Documentation

seuratReductionPlot Plots the selected dimensionality reduction method

Description

seuratReductionPlot Plots the selected dimensionality reduction method

Usage

seuratReductionPlot(
  inSCE,
  useReduction = c("pca", "ica", "tsne", "umap"),
  showLegend = FALSE
)

Arguments

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 "umap".

showLegend

Select if legends should be shown on the output plot or not. Either "TRUE" or "FALSE". Default FALSE.

Value

plot object

Examples

data(scExample, package = "singleCellTK")
## Not run: 
sce <- seuratNormalizeData(sce, useAssay = "counts")
sce <- seuratFindHVG(sce, useAssay = "counts")
sce <- seuratScaleData(sce, useAssay = "counts")
sce <- seuratPCA(sce, useAssay = "counts")
seuratReductionPlot(sce, useReductionPlot = "pca")
## End(Not run)

[Package singleCellTK version 2.0.0 Index]