calcPCA | R Documentation |
Calculate PCA
calcPCA(grid, centre = TRUE, scale, r = ncol(grid))
grid |
matrix or dataframe. If a dataframe, then the numeric columns are selected and converted to a matrix. |
centre, scale |
logical. If TRUE, then the matrix has its mean subtracted (centre) and/or has each column divided by its sd (scale). If scale = TRUE and the sd of a column is 0, then that column is not divided by its sd and a message is printed. |
r |
integer. The number of principal compononents to show information for.
Defaults to |
A list containing elements:
VJMat | matrix of eigenvectors |
YMat | matrix of principal component scores |
singValVec | vector of singular values |
cumPropVarVec | vector of cumulative proportion of variation |
compPropVarVec | vector of component-wise proportion of variation |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.