LabelPlot: Coloring specific leaves of a dendrogram

Description Usage Arguments Value Author(s) Examples

View source: R/Labelplot.R

Description

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

Usage

1
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.

Author(s)

Marijke Van Moerbeke

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
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')

IntClust documentation built on May 2, 2019, 5:23 p.m.