Description Usage Arguments Value Note Author(s) See Also Examples
Allows a simple classification of objects by slicing a dendrogram of a hierarchical cluster analysis graphically with a mouse, or by simply giving a number.
1 |
clust |
an object of class ‘hclust’ produced by |
k |
a desired number of clusters. If null, the function waits on a mouse click |
an object of class ‘clustering’, a list with a vector of cluster memberships
This function is a simple wrapper for cutree
that allows users
to click their mouse at the height they desire to slice the dendrogram, and to establish
the result with a class of ‘clustering’ for ease of use in other functions. If you
want to use the mouse, the dendrogram must have been previously plotted in the current
graphic device.
David W. Roberts droberts@montana.edu http://ecology.msu.montana.edu/labdsv/R
1 2 3 4 5 6 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.