Learn R Programming

nomclust (version 2.6.2)

as.agnes: Convert Objects to Class agnes, twins

Description

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

Usage

as.agnes(x, ...)

Value

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

Arguments

x

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

...

Further arguments passed to or from other methods.

Author

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

See Also

Examples

Run this code
# 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)

Run the code above in your browser using DataLab