title: R - Phylogram labels to vector
body: <p>If we plot a phylogram from hierarchical clustering using <code>ape</code> package</p>
  
  <pre><code>phy &lt;- hclust(dist(mtcars))
  plot(as.phylo(phy),direction="downwards")
  </code></pre>
  
  <p>Is there a way to extract the labels in to a vector in the same order they appear in the phylogram (read from left to right)?</p>
  
  <p>If I try</p>
  
  <pre><code>phy$labels
  </code></pre>
  
  <p>I can get the labels out but they appear to be in a different order.</p>