Learn R Programming

coca (version 1.1.0)

plotSilhouette: Plot silhouette

Description

Plot average silhouette for different values of K.

Usage

plotSilhouette(sil, chosenK = NULL, fileName)

Arguments

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.