Learn R Programming

ClustOfVar (version 1.1)

plot.hclustvar: Dendrogram of the hierarchy of variables

Description

Dendrogram of the hierarchy of variables resulting from hclustvar and aggregation levels plot.

Usage

# S3 method for hclustvar
plot(x, type = "tree", sub = "", ...)

Arguments

x

an object of class hclustvar.

type

if type="tree" plot of the dendrogram and if type="index" aggregation levels plot.

sub

a sub title for the plot.

further arguments passed to or from other methods.

See Also

hclustvar

Examples

Run this code
# NOT RUN {
data(wine)
X.quanti <- PCAmixdata::splitmix(wine)$X.quanti
X.quali <- PCAmixdata::splitmix(wine)$X.quali
tree <- hclustvar(X.quanti,X.quali)
plot(tree)

#Aggregation levels plot
plot(tree,type="index")

# }

Run the code above in your browser using DataLab