Learn R Programming

biotools (version 1.0)

tocher: Tocher's Clustering

Description

tocher performs the Tocher (Rao, 1952) optimization clustering from a distance matrix.

Usage

tocher(d)

Arguments

d
an object of class "dist".

Value

  • tocher returns a list of length k (the number of clusters) containing the labels of the objects in d. Furthermore, a matrix of distances within (diagonal) and between (off-diagonal) clusters is attached as an attribute.

References

Cruz, C.D.; Ferreira, F.M.; Pessoni, L.A. (2011) Biometria aplicada ao estudo da diversidade gen'etica. Visconde do Rio Branco: Suprema. Rao, R.C. (1952) Advanced statistical methods in biometric research. New York: John Wiley & Sons. Sharma, J.R. (2006) Statistical and biometrical techniques in plant breeding. Delhi: New Age International. Silva, A.R. & Dias, C.T.S. (2013) A cophenetic correlation coefficient for Tocher's method. Pesquisa Agropecu'aria Brasileira, 48:589-596.

See Also

coph.tocher, distClust, hclust

Examples

Run this code
# example 1
data(garlicdist)
garlic <- tocher(garlicdist)
attr(garlic, "distClust") # cluster distances

# example 2
data(USArrests)
usa <- tocher(dist(USArrests))
attr(usa, "distClust")

# example 3
data(eurodist)
euro <- tocher(eurodist)
attr(euro, "distClust")

# End (not run)

Run the code above in your browser using DataLab