PCAElbowPlot | R Documentation |
Draw an elbow plot of the standard deviations of the principal components to deduce an appropriate value for p.
PCAElbowPlot.SingleCellExperiment(object, return.plot) ## S4 method for signature 'SingleCellExperiment' PCAElbowPlot(object, return.plot = FALSE)
object |
object of class 'iloreg' |
return.plot |
logical indicating if the ggplot2 object should be returned (default FALSE) |
ggplot2 object if return.plot=TRUE
library(SingleCellExperiment) sce <- SingleCellExperiment(assays = list(logcounts = pbmc3k_500)) sce <- PrepareILoReg(sce) ## These settings are just to accelerate the example, use the defaults. sce <- RunParallelICP(sce,L=2,threads=1,C=0.1,k=5,r=1) sce <- RunPCA(sce,p=5) PCAElbowPlot(sce)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.