Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

gl.pcoa.scree

Produce a plot of eigenvalues, standardized as percentages, derived from a PCoA


Description

This script takes output from gl.pcoa() and produces a plot of eigenvalues, expressed as a percentage of the sum of the eigenvalues. An option is provided to only plot those eigenvalues with greater explanatory power than the average for the original variables.

Usage

gl.pcoa.scree(x, top = TRUE, verbose = 0)

Arguments

x

– name of the pcoa file generated by gl.pcoa() [required]

top

– a flag to indicate whether or not plot only those eigenvalues greater in value than the average for the unordinated original variables (top=TRUE) or to plot all eigenvalues (top=FALSE). If top=FALSE, then a reference line showing the average eigenvalue for the unordinated variables is shown. [default TRUE]

verbose

– verbosity: 0, silent or fatal errors; 1, begin and end; 2, progress log ; 3, progress and results summary; 5, full report [default 2 or as specified using gl.set.verbosity]

Details

A Scree Plot is a plot of the relative value of eigenvalues, usually expressed as a percentage, that informs a decision on how many dimensions carry with them substantial information worthy of examination. In an ordination, such as PCoA, the axes are ordered on the proportion of variation explained, so the first axis explains the most (has the largest eigenvalue), the second explains the next greatest amount, and so on.

Value

The scree plot

Author(s)

Arthur Georges (Post to https://groups.google.com/d/forum/dartr)

Examples

pcoa <- gl.pcoa(testset.gl)
gl.pcoa.scree(pcoa)

dartR

Importing and Analysing SNP and Silicodart Data Generated by Genome-Wide Restriction Fragment Analysis

v1.9.6
GPL-2
Authors
Bernd Gruber [aut, cre], Arthur Georges [aut], Jose L. Mijangos [aut], Peter J. Unmack [ctb], Oliver Berry [ctb], Lindsay V. Clark [ctb], Floriaan Devloo-Delva [ctb]
Initial release
2021-04-29

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.