Learn R Programming

coca (version 1.1.0)

plotDunns: Plot Dunn's index

Description

Plot Dunn's index (minimum separation / maximum diameter) for different values of K.

Usage

plotDunns(dunns, chosenK = NULL, fileName)

Arguments

dunns

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.