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

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.