ClustBlock (version 2.3.1)

plot.cluscata: Displays the CLUSCATA graphs

Description

This function plots dendrogram, variation of the merging criterion, weights and CATATIS map of each cluster

Usage

# S3 method for cluscata
plot(x, ngroups=NULL, Graph_groups=TRUE, Graph_dend=TRUE,
Graph_bar=FALSE, Graph_weights=FALSE, axes=c(1,2), cex=1,
col.obj="blue", col.attr="red", ...)

Arguments

x

object of class 'cluscata'.

ngroups

number of groups to consider. Ignored for cluscata_kmeans results. Default: recommended number of clusters

Graph_groups

logical. Should each cluster compromise graphical representation be plotted? Default: TRUE

Graph_dend

logical. Should the dendrogram be plotted? Default: TRUE

Graph_bar

logical. Should the barplot of the difference of the criterion and the barplot of the overall homogeneity at each merging step of the hierarchical algorithm be plotted? Also available after consolidation if Noise_cluster=FALSE. Default: FALSE

Graph_weights

logical. Should the barplot of the weights in each cluster be plotted? Default: FALSE

axes

numerical vector (length 2). Axes to be plotted. Default: c(1,2)

cex

numerical. Numeric character expansion factor; multiplied by par("cex") yields the final character size. NULL and NA are equivalent to 1.0.

col.obj

numerical or string. Color for the objects points. Default: "blue"

col.attr

numerical or string. Color for the attributes points. Default: "red"

...

further arguments passed to or from other methods

Value

the CLUSCATA graphs

See Also

cluscata , cluscata_kmeans

Examples

Run this code
# NOT RUN {
 data(straw)
 res=cluscata(Data=straw[,1:(16*40)], nblo=40)
 plot(res, ngroups=3, Graph_dend=FALSE)
 plot(res, ngroups=3, Graph_dend=FALSE,Graph_bar=FALSE, Graph_weights=FALSE, axes=c(1,3))
# }

Run the code above in your browser using DataLab