ClustOfVar (version 0.8)

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", which=c(1:2), 
    ask = prod(par("mfcol")) < length(which) && dev.interactive(),sub="", …)

Arguments

x

an object of class hclustvar.

type

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

which

if one of the two plots is required, specify a subset of the numbers 1:2

ask

logical; if TRUE, the user is _ask_ed before each 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 <- wine[,c(3:29)] 
X.quali <- wine[,c(1,2)] 
tree <- hclustvar(X.quanti,X.quali)
plot(tree)

# 2 plots on 1 page
par(mfrow = c(1, 2))
plot(tree) 

 # plot just the dendrogram
plot(tree,which=1)
# }

Run the code above in your browser using DataLab