seuratElbowPlot: seuratElbowPlot Computes the plot object for elbow plot from...

Description Usage Arguments Value Examples

View source: R/seuratFunctions.R

Description

seuratElbowPlot Computes the plot object for elbow plot from the pca slot in the input sce object

Usage

1
seuratElbowPlot(inSCE, significantPC = NULL, reduction = "pca")

Arguments

inSCE

(sce) object from which to compute the elbow plot (pca should be computed)

significantPC

Number of significant principal components to plot. This is used to alter the color of the points for the corresponding PCs. If NULL, all points will be the same color. Default NULL.

reduction

Reduction to use for elbow plot generation. Either "pca" or "ica". Default "pca".

Value

plot object

Examples

1
2
3
4
5
6
7
8
9
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")
seuratElbowPlot(sce)

## End(Not run)

singleCellTK documentation built on Nov. 8, 2020, 5:21 p.m.