title: R hclust -> dendrogram -> phylo?
body: <p>I have hclust hierarchical cluster objects with hundreds of nodes and long labels.  For example, synonyms of multiple genes within a family.  See below.</p>
  
  <p>I would like to cut the <em>hclust</em> into smaller subtrees and then visualize them with flexible styles.  Following <a href="http://gastonsanchez.com/blog/how-to/2012/10/03/Dendrograms.html" rel="nofollow noreferrer">http://gastonsanchez.com/blog/how-to/2012/10/03/Dendrograms.html</a>, I see how to cut <em>dendrograms</em> and pretty-plot <em>ape phylogenic trees</em>.  </p>
  
  <p>I just don't see any method for converting the cut dendrograms into phylo objects.</p>
  
  <pre><code>&gt; as.phylo(as.dendrogram(hc))
  Error in UseMethod("as.phylo") : 
    no applicable method for 'as.phylo' applied to an object of class "dendrogram"
  </code></pre>
  
  <p>I'm open to any method which would render circular or vertically oriented subtrees.</p>
  
  <p><strong>In fact, my goal is to visually detect patterns in the gene synonyms so that I can write something like <a href="https://mustache.github.io/" rel="nofollow noreferrer">mustache</a> templates for them, so I'm even open to solutions that don't involve dendrograms.</strong>  There are a handful of SO posts about multiple sequence alignments of plain text, but they go a little over my head.</p>
  
  <pre><code>&gt; receptor.synonyms
                                   synonym
  1                alpha1B-adrenergic receptor
  2                                       B1AR
  3              adrenergic receptor, alpha 2a
  4                                  beta 3-AR
  5                                 alpha-2AAR
  6                                  alpha2-C4
  7                                     Adrb-1
  8                                       Badm
  9                                  beta 1-AR
  10    Adrenergic, alpha2C-, receptor class I
  11                     alpha-1D adrenoceptor
  12                                 beta 2-AR    
  13                       adrenergic receptor
  14              alpha-2A-adrenergic receptor
  15  Adrenergic, alpha2B-, receptor class III
  16            adrenergic, alpha 1B, receptor
  17                    &amp;alpha;&lt;sub&gt;2&lt;/sub&gt;-C2
  18           adrenergic, alpha-1A-, receptor
  19                                   ADRARL1
  20                     alpha-1B adrenoceptor
  --- snip ---
  </code></pre>
  
  <p><a href="https://i.stack.imgur.com/E0bKs.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/E0bKs.png" alt="enter image description here"></a></p>