Learn R Programming

DIscBIO (version 1.2.2)

plotSilhouette: Silhouette Plot for K-means clustering

Description

The silhouette provides a representation of how well each point is represented by its cluster in comparison to the closest neighboring cluster. It computes for each point the difference between the average similarity to all points in the same cluster and to all points in the closest neighboring cluster. This difference it normalize such that it can take values between -1 and 1 with higher values reflecting better representation of a point by its cluster.

Usage

plotSilhouette(object, K)

# S4 method for DISCBIO plotSilhouette(object, K)

Value

A silhouette plot

Arguments

object

DISCBIO class object.

K

A numeric value of the number of clusters