plotR2 {pcaMethods} | R Documentation |
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.
plotR2(object, nPcs=object@nPcs, type = c("barplot", "lines"), main = deparse(substitute(x)), ...)
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 |
None, used for side effect.
Henning Redestig <redestig[at]mpimp-golm.mpg.de
screeplot