plotR2 {pcaMethods}R Documentation

R2 plot (screeplot) for PCA

Description

Plot the R2 of the principal components to get an idea of their importance. Note though that the standard screeplot shows the standard deviations for the PC's this method shows the R2 values which empirically shows the importance of the PC's and is thus applicable for any PCA method rather than just SVD based PCA.

Usage

plotR2(object, nPcs=object@nPcs, type = c("barplot", "lines"), main = deparse(substitute(x)), ...)

Arguments

object pcaRes The pcaRes object.
nPcs numeric The amount of PC's to consider.
type character Barplot or line plot
main character The main label of the plot
... Passed on to screeplot

Value

None, used for side effect.

Author(s)

Henning Redestig <redestig[at]mpimp-golm.mpg.de

See Also

screeplot


[Package pcaMethods version 1.18.0 Index]