This function will generate a line plot of eigenvalues of PCs. These plots can be used to determine the number of factors to retain for downstream analyses (e.g GWAS).
Usage
plotScree(
pcaObj,
nComp = 10,
interactive = FALSE,
lineColor = "grey",
pointColor = "black"
)