Hope you are all doing good.
I use a dendogram:
d <-
dist(Correlation_Test)
hc <-
hclust(d, "ave")
plot(hc)
It works fine and shows at the End the dendogram. Dendogram has different labels. Some of them with the prefix A some with B. I want now to colorize the labels and perhaps branches, based on the label, if its A or B. I found dendextend package. But I didnt manage to automatically colorize the labels based on their prefix.
Can someone help me :)
Example data of Table which is used for Correlation
A Data 1 A Data 1 B Data 1
0.1666667 0.5 0.6666667
0.6666667 0.6666667 0.6666667
0.5 0.5 0.6666667