View source: R/plot.cluscata.R
plot.cluscata | R Documentation |
This function plots dendrogram, variation of the merging criterion, weights and CATATIS map of each cluster
## S3 method for class '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", ...)
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 |
the CLUSCATA graphs
cluscata
, cluscata_kmeans
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))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.