nps.plot {popgen}R Documentation

Gap statistic plot for nps function

Description

Plot the Gap statistic for different numbers of clusters using the output of the SNP genotype clustering function nps.

Usage

nps.plot(res, k.max)

Arguments

res Object produced by the function nps
k.max Maximum number of clusters to plot the Gap statistic for.

Details

Plot the Gap statistic for different numbers of clusters using the output of the SNP genotype clustering function nps. A red line is used to indicate the selected number of clusters.

Author(s)

Jonathan Marchini

References

R. Tibshirani and G. Walther and T. Hastie (2001) Estimating the number of clusters in a dataset via the gap statistic. JRSS (B)

See Also

nps


[Package popgen version 0.0-4 Index]