title: Adding group information to pvclust dendrogram instead of sample name
body: <p>This is what I'm doing</p>
  <pre><code>mat &lt;-  read.table(&quot;Model_pvclust/Model18_FAB_M5_vs_M0_MAP_TF.txt&quot;,sep = &quot;\t&quot;,strip.white = FALSE,check.names = FALSE,header=TRUE,row.names=1)
  drop &lt;- c(&quot;gene&quot;,&quot;baseMean&quot;,&quot;log2FoldChange&quot;,&quot;lfcSE&quot;,&quot;stat&quot;,&quot;pvalue&quot;,&quot;padj&quot;,&quot;UP_DOWN&quot;)
  
  d1 &lt;- select(mat, -one_of(drop))
  </code></pre>
  <p>####### Read the metadata</p>
  <pre><code>metadata &lt;-read.table(&quot;Model_hmap_meta/FAB_table.txt&quot;,sep = &quot;\t&quot;,strip.white = FALSE,check.names = FALSE,header=TRUE,row.names=1)
  head(metadata)
  
  
  
  head(metadata)
               prior_malignancy FAB    Risk_Cyto
  TCGA-AB-2856               no  M4 Intermediate
  TCGA-AB-2849               no  M0         Poor
  TCGA-AB-2971               no  M4 Intermediate
  TCGA-AB-2930               no  M2 Intermediate
  TCGA-AB-2891               no  M1         Poor
  TCGA-AB-2872               no  M3         Good
  </code></pre>
  <h3>Plotting the cluster</h3>
  <pre><code>pvc &lt;- pvclust( data = d1 , method.dist = &quot;correlation&quot;, method.hclust = &quot;complete&quot;,parallel = T)
  plot(pvc,las=2,hang = -0.5)
  pvrect(pvc, alpha = 0.9)
  </code></pre>
  <p>Image that i get is where My sample names are labelled. Instead of those sample names I would like to label them based on that FAB columns matching the sample name order.</p>
  <p>My data files <a href="https://drive.google.com/file/d/1gidgAGFRbns-QKjN-1vNw7bU3uuzJsrt/view?usp=sharing" rel="nofollow noreferrer">mat</a> and my <a href="https://drive.google.com/file/d/166uvBILwD9qHwf_g3h8WdgxqQxZ_muir/view?usp=sharing" rel="nofollow noreferrer">metadata</a></p>
  <p><a href="https://i.stack.imgur.com/C2mEN.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/C2mEN.jpg" alt="pvclust figure" /></a></p>
  <p>Updated answer<a href="https://i.stack.imgur.com/kK2LT.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/kK2LT.jpg" alt="updated image" /></a></p>