Load:
Create a dendrogram (if you don’t know what %>% is,
read about it here
) :
Plot:
Get/set labels
## [1] 1 2 5 3 4## [1] "A"      "B"      "extend" "dend"   "C"Get/set labels’ colors
## NULL##         A         B    extend      dend         C 
## "#FF0000" "#CCFF00" "#00FF66" "#0066FF" "#CC00FF"Cut-tree, and color branches
##      A      B   dend      C extend 
##      1      1      2      2      2Sort
Compare
Cor
## [1] 1ggplot2
Send to plot.ly