ColorsNames: Function that annotates colors to their names

Description Usage Arguments Value Author(s) See Also Examples

View source: R/ColorsNames.R

Description

The ColorsNames function is used on the output of the ReorderToReference and matches the cluster numbers indicated by the cell with the names of the colors. This is necessary to produce the plot of the ComparePlot function and is therefore an internal function of this function but can also be applied separately.

Usage

1
ColorsNames(MatrixColors, cols = NULL)

Arguments

MatrixColors

The output of the ReorderToReference function.

cols

The hex codes of the colors to be used.

Value

A matrix containing the hex code of the color that corresponds to each cell of the matrix to be colored. This function is called upon by the ComparePlot function.

Author(s)

Marijke Van Moerbeke

See Also

ReorderToReference

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
data(fingerprintMat)
data(targetMat)
data(Colors2)

MCF7_F = Cluster(fingerprintMat,type="data",distmeasure="tanimoto",normalize=FALSE,
method=NULL,clust="agnes",linkage="ward",gap=FALSE,maxK=55,StopRange=FALSE)
MCF7_T = Cluster(targetMat,type="data",distmeasure="tanimoto",normalize=FALSE,
method=NULL,clust="agnes",linkage="ward",gap=FALSE,maxK=55,StopRange=FALSE)

L=list(MCF7_F,MCF7_T)
names=c("FP","TP")

MatrixColors=ReorderToReference(L,nrclusters=7,fusionsLog=TRUE,WeightClust=TRUE,
names=names)

Names=ColorsNames(MatrixColors,cols=Colors2)

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