Learn R Programming

Mfuzz (version 2.32.0)

kmeans2.plot: Plotting results for k-means clustering

Description

This function visualises the clusters produced by kmeans2.

Usage

kmeans2.plot(eset,kl,mfrow=c(1,1))

Arguments

eset
object of the class“ExpressionSet”.
kl
list produced by kmeans2.
mfrow
determines splitting of graphic window.

Value

Examples

Run this code
if (interactive()){
data(yeast)
# Data pre-processing
yeastF <- filter.NA(yeast)
yeastF <- fill.NA(yeastF)
yeastF <- standardise(yeastF)

# K-means clustering and visualisation
kl <- kmeans2(yeastF,k=20)
kmeans2.plot(yeastF,kl=kl,mfrow=c(2,2))
}

Run the code above in your browser using DataLab