title: how to rename values in Hierarchical cluster analysis in R?
body: <p>I have this data with one column in character and one column in value.</p>
  <pre><code>data = structure(list(Station = c(&quot;1A&quot;, &quot;1B&quot;, &quot;2A&quot;, &quot;2B&quot;, &quot;3A&quot;, &quot;3B&quot;, 
  &quot;4A&quot;, &quot;4B&quot;, &quot;5A&quot;, &quot;5B&quot;, &quot;6A&quot;, &quot;6B&quot;, &quot;7A&quot;, &quot;7B&quot;), Particles.kg = c(370L, 
  420L, 250L, 320L, 130L, 210L, 290L, 390L, 230L, 340L, 60L, 90L, 
  130L, 170L)), class = &quot;data.frame&quot;, row.names = c(NA, -14L))
  </code></pre>
  <p>now i convert the character in to factor by</p>
  <pre><code>data$Station = as.factor(data$Station)
  </code></pre>
  <p>then i start Hierarchical Cluster analysis</p>
  <pre><code>rownames(data) = c(data$Station)
  data = data[,-1]
  require(stats)
  res.dist = dist(x=data, method = &quot;euclidean&quot;)
  hcl = hclust(d=res.dist, method = &quot;complete&quot;)
  plot(x=hcl, hang = -1, cex = 0.6)
  </code></pre>
  <p>(sorry can't upload the picture for network issue) but after this in my picture intead 1A, 2A, 3A, 3B it comes 1,2,3,.....,14.
  how can i solve this?</p>