Description Usage Arguments Details Note Author(s) Examples
Function that allows to swap to clusters in a hclust
object.
1 | swap_hclust(x)
|
x |
[hclust] Cluster of |
This function allows the user to swap clusters in a hclust
object
by clicking on them.
When the plot window is active after running this function, simply click on the two cluster you want to swap.
Swapping cluster do not change the topology of the cluster (i.e.: the results are the same). It is only intended for representation purpoises.
Víctor Moreno-González <vmorg@unileon.es>
1 2 3 4 5 6 7 8 9 10 11 12 13 | ## Not run:
# Draw any cluster
hc <- hclust(dist(USArrests))
plot(hc)
# Swap
swap_hclust(hc)
## 1- Click on two sub-clusters
## 2- Do it as many times you want
## 3- Press ESC or Finish
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.