title: X axis label is not showing in clustering dendrogram in ggplot
body: <p>I have done a clustering dendrogram following a previous code I found online, but the x-axis of is not being shown in the graph. I would like to have the dissimilarity value shown in the x-axis, but I have not been successful.</p>
  
  <pre><code>females&lt;-cervidae[cervidae$Sex=="female",]
  dstf   &lt;- daisy(females[,9:14], metric = "euclidean", stand = FALSE)
  hcaf   &lt;- hclust(dstf, method = "ave")
  k     &lt;- 3
  clustf &lt;- cutree(hcaf,k=k)  # k clusters
  
  
  dendrf    &lt;- dendro_data(hcaf, type="rectangle") # convert for ggplot
  clust.dff &lt;- data.frame(label=rownames(females), cluster=factor(clustf), 
  females$Genus, females$Species) 
  dendrf[["labels"]]   &lt;- merge(dendrf[["labels"]],clust.dff, by="label")
  rectf &lt;- aggregate(x~cluster,label(dendrf),range)
  rectf &lt;- data.frame(rectf$cluster,rectf$x)
  ymax &lt;- mean(hcaf$height[length(hcaf$height)-((k-2):(k-1))])
  
  
  fem=ggplot() + 
     geom_segment(data=segment(dendrf), aes(x=x, y=y, xend=xend, yend=yend)) + 
     geom_text(data=label(dendrf), aes(x, y, label= females.Genus, hjust=0, 
     color=females.Genus),
          size=3) +
     geom_rect(data=rectf, aes(xmin=X1-.3, xmax=X2+.3, ymin=0, ymax=ymax), 
          color="red", fill=NA)+
     coord_flip() + scale_y_reverse(expand=c(0.2, 0)) + 
     theme_dendro() + scale_color_discrete(name="Genus") + 
     theme(legend.position="none")
  </code></pre>
  
  <p>Here is how my dendrogram looks:</p>
  
  <p><a href="https://i.stack.imgur.com/j0MSY.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/j0MSY.png" alt="enter image description here"></a></p>