as.agnes: Convert Objects to Class agnes, twins

View source: R/as.agnes.R

as.agnesR Documentation

Convert Objects to Class agnes, twins

Description

Converts objects of the class "nomclust" to the class "agnes, twins".

Usage

as.agnes(x, ...)

Arguments

x

The "nomclust" object containing components "dend" and "prox".

...

Further arguments passed to or from other methods.

Value

The function returns an object of class "agnes, twins".

Author(s)

Zdenek Sulc.
Contact: zdenek.sulc@vse.cz

See Also

agnes, as.hclust and hclust.

Examples

# sample data
data(data20)

# creating an object with results of hierarchical clustering of 
hca.object <- nomclust(data20, measure = "lin", method = "average",
 clu.high = 5, prox = TRUE)

# nomclust plot
plot(hca.object)

# obtaining the agnes, twins object
hca.object.agnes <- as.agnes(hca.object)

# agnes plot
plot(hca.object.agnes)

# obtaining the hclust object
hca.object.hclust <- as.hclust(hca.object)

# hclust plot
plot(hca.object.hclust)


nomclust documentation built on Aug. 18, 2023, 5:06 p.m.

Related to as.agnes in nomclust...