identify.hclust
reads the position of the graphics pointer when the
(first) mouse button is pressed. It then cuts the tree at the
vertical position of the pointer and highlights the cluster containing
the horizontal position of the pointer. Optionally a function is
applied to the index of data points contained in the cluster.# S3 method for hclust
identify(x, FUN = NULL, N = 20, MAXCLUSTER = 20, DEV.FUN = NULL,
…)
hclust
.FUN
is
applied.FUN
.FUN
.invisible
list of indices of the respective data points
is returned. If FUN
is not NULL
, then the index vector of data points
is passed to this function as first argument, see the examples
below. The active graphics device for FUN
can be specified using
DEV.FUN
. The identification process is terminated by pressing any mouse
button other than the first, see also identify
.hclust
,
rect.hclust