View source: R/seuratFunctions.R
plotSeuratElbow | R Documentation |
plotSeuratElbow Computes the plot object for elbow plot from the pca slot in the input sce object
plotSeuratElbow(
inSCE,
significantPC = NULL,
reduction = "pca",
ndims = 20,
externalReduction = NULL,
interactive = TRUE
)
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 |
reduction |
Reduction to use for elbow plot generation. Either
|
ndims |
Number of components to use. Default |
externalReduction |
Pass DimReduc object if PCA/ICA computed through
other libraries. Default |
interactive |
Logical value indicating if the returned object should
be an interactive plotly object if |
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")
plotSeuratElbow(sce)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.