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
## "#FF0000FF" "#CCFF00FF" "#00FF66FF" "#0066FFFF" "#CC00FFFF"
Cut-tree, and color branches
## A B dend C extend
## 1 1 2 2 2
Sort
Compare
Cor
## [1] 1
ggplot2
Send to plot.ly