screePlotPCs: Calculating proportion of genetic variation captured by each...

View source: R/func__screePlotPCs.R

screePlotPCsR Documentation

Calculating proportion of genetic variation captured by each principal component

Description

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.

Usage

screePlotPCs(ev, ev.unsorted = FALSE)

Arguments

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.

Author(s)

Yu Wan (wanyuac@126.com)

Examples

pr <- screePlotPCs(ev = assoc_lmm$struc$C$ev)


wanyuac/GeneMates documentation built on Aug. 12, 2022, 7:37 a.m.