Learn R Programming

IntClust (version 0.0.2)

LabelPlot: Coloring specific leaves of a dendrogram

Description

Just as the function ClusterCols, LabelCols as its own plotting function LabelPlot which plots the dendrogram.

Usage

LabelPlot(Data, Sel1, Sel2 = NULL, col1, col2 = NULL, ...)

Arguments

Data

The result of a method which contains the dendrogram to be colored.

Sel1

The selection of objects to be colored.

Sel2

An optional second selection to be colored.

col1

The color for the first selection.

col2

The color for the optional second selection.

Other options which can be given to the plot function.

Value

A plot of the dendrogram of which the leaves of the selection(s) are colored.

Examples

Run this code
# NOT RUN {
data(fingerprintMat)
MCF7_F = Cluster(fingerprintMat,type="data",distmeasure="tanimoto",normalize=FALSE,
method=NULL,clust="agnes",linkage="ward",gap=FALSE,maxK=55,StopRange=FALSE)

ClustF_6=cutree(MCF7_F$Clust,6)

SelF=rownames(fingerprintMat)[ClustF_6==6]
SelF

LabelPlot(MCF7_F,Sel1=SelF,Sel2=NULL,col1='darkorchid')

# }

Run the code above in your browser using DataLab