pca_decision plots the explained variances against the number of the principal component. In addition, it returns all the information about the PCA performance.
Arguments
- x
data.frame. A data.frame with the following variables:
x, y, time, value, var, units. Seeas_synoptReg.- ncomp
integer. Number of principal components to show/retain
- norm
logical. Default
TRUE.norm = TRUEis recommended for classify two ore more variables.- matrix_mode
character. The mode of matrix to use. Choose between S-mode and T-mode
Value
a list with:
A list with class
princompcontaining all the results of the PCAA data frame containing the main results of the
ncompselected (standard deviation, proportion of variance and cumulative variance).A
ggplot2object to visualize the scree test
Note
To perform the PCA the x must contain more rows than columns. In addition, x cannot contain NA values.