Learn R Programming

strataG (version 1.0.5)

evanno: Run Evanno Method on STRUCTURE Results

Description

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

Usage

evanno(sr, plot = TRUE)

Arguments

sr
output from a call to structure.
plot
logical. Generate a plot of Evanno metrics.

Value

a data.frame with Evanno log-likelihood metrics for each value of K.

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

Run this code
## 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)

Run the code above in your browser using DataLab