View source: R/func__screePlotPCs.R
screePlotPCs | R Documentation |
Since eigenvalues is proportional to the amount of genetic variation captured by the corresponding principal component (PC), this function computes the proportion for every PC so that users can draw a scree plot for PCs.
screePlotPCs(ev, ev.unsorted = FALSE)
ev |
A vector of eigenvalues, which can be obtained from the element struc$C$ev in the output of the functions lmm or findPhysLink. |
ev.unsorted |
A logical argument telling the function that eigenvalues have been sorted in a descending order. Default: FALSE. |
Yu Wan (wanyuac@126.com)
pr <- screePlotPCs(ev = assoc_lmm$struc$C$ev)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.