Plot widest gap for different values of K.
plotWidestGap(widestGap, chosenK = NULL, fileName)
widestGap | Vector of widest gap values for K from 2 to some value maxK. |
---|---|
chosenK | Chosen number of clusters. If specified, a vertical line is plotted in correspondence of the indicated value. Default is NULL. |
fileName | Name of the png file. |