nps.plot {popgen} | R Documentation |
Plot the Gap statistic for different numbers of clusters using the output of the SNP genotype clustering function nps.
nps.plot(res, k.max)
res |
Object produced by the function nps |
k.max |
Maximum number of clusters to plot the Gap statistic for. |
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.
Jonathan Marchini
R. Tibshirani and G. Walther and T. Hastie (2001) Estimating the number of clusters in a dataset via the gap statistic. JRSS (B)