Description Usage Arguments Value Author(s) See Also Examples
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.
1 | ColorsNames(MatrixColors, cols = NULL)
|
MatrixColors |
The output of the ReorderToReference function. |
cols |
The hex codes of the colors to be used. |
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.
Marijke Van Moerbeke
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)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.