evanno: Run Evanno Method on STRUCTURE Results

Description Usage Arguments Value Author(s) References See Also Examples

View source: R/evanno.R

Description

Calculate first and second order rates of changes of LnPr(K) from STRUCTURE results based on Evanno et al. 2005.

Usage

1
evanno(sr, plot = TRUE)

Arguments

sr

output from a call to structure.

plot

logical. Generate a plot of Evanno metrics?

Value

a list with:

df data.frame with Evanno log-likelihood metrics for each value of K.
plots list of four ggplot objects for later plotting.

Author(s)

Eric Archer eric.archer@noaa.gov

References

Evanno, G., Regnaut, S., and J. Goudet. 2005. Detecting the number of clusters of individuals using the software STRUCTURE: a simulation study. Molecular Ecology 14:2611-2620.

See Also

structure clumpp

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
## Not run: 
data(msats.g)

# Run STRUCTURE
sr <- structureRun(msats, k.range = 1:4, num.k.rep = 10)

# Calculate Evanno metrics
evno <- evanno(sr)
evno

## End(Not run)

strataG documentation built on Feb. 28, 2020, 9:07 a.m.