plotPcaVariation: Plot PCA Variation

View source: R/plotN-S.R

plotPcaVariationR Documentation

Plot PCA Variation

Description

Displays a scree plot of the current principal component analysis data stored in the object.

Usage

plotPcaVariation(object, n_pcs = NULL, ...)

Arguments

object

An object of class SPATA2 or, in case of S4 generics, objects of classes for which a method has been defined.

n_pcs

Numeric value or NULL. If numeric, specifies the number of principal components to use. If NULL, all principal components are used (as computed with runPCA()).

...

Used to absorb deprecated arguments or functions.

Value

Returns a ggplot that can be additionally customized according to the rules of the ggplot2 framework.


theMILOlab/SPATA2 documentation built on Feb. 8, 2025, 11:41 p.m.