Plot average silhouette for different values of K.
plotSilhouette(sil, chosenK = NULL, fileName)
sil | vector of the average silhouette 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. |