Learn R Programming

strataG (version 2.0.2)

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 list with:

df

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

plots

list of four ggplot objects for later plotting.

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
# }
# NOT RUN {
# }

Run the code above in your browser using DataLab