Description Usage Arguments Details Author(s) Examples
This function creates a graphical display of the variances against the number of principal components. It is used to determine how many components should be retained in order to explain a high percentage of the variation in the data
1 | screeplot(pca_obj, ncomp)
|
pca_obj |
an object of class pca |
ncomp |
the number of components to plot |
screplot generates 2 graphs that represent respectively the relative variances and the cumulative variances associated with the principal components
Piergiorgio Palla
1 2 3 | ## data(cachexiaData)
## pca_obj <- pca(cachexiaData, autoscale = TRUE, exclude = TRUE)
## screeplot(pca_obj, ncomp = 10)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.