plotCumulativeVarExplained: Plot the cumulative variance explained

View source: R/seurat_plot.R

plotCumulativeVarExplainedR Documentation

Plot the cumulative variance explained

Description

This function first verify that the variance explained has been computed, and if not computes it. It then computes the cumulative sum of the variances, and then creates a plot of the cumulative variance explained for each PC.

Usage

plotCumulativeVarExplained(seur, npcs = 50)

Arguments

seur

The Seurat object from which the PCA data will be taken

npcs

The number of PCs to plot

Value

A ggplot object


LabexCortexBioinformatics/LxCxUtils documentation built on Aug. 2, 2022, 6:23 a.m.