View source: R/plot.clustatis.R
plot.clustatis | R Documentation |
This function plots dendrogram, variation of the merging criterion, weights and STATIS map of each cluster
## S3 method for class 'clustatis'
plot(x, ngroups=NULL, Graph_groups=TRUE, Graph_dend=TRUE,
Graph_bar=FALSE, Graph_weights=FALSE, axes=c(1,2), col=NULL, cex=1, font=1, ...)
x |
object of class 'clustatis'. |
ngroups |
number of groups to consider. Ignored for clustatis_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) |
col |
vector. Color for each object. Default: rainbow(nrow(Data)) |
cex |
numerical. Numeric character expansion factor; multiplied by par("cex") yields the final character size. NULL and NA are equivalent to 1.0. |
font |
numerical. Integer specifying font to use for text. 1=plain, 2=bold, 3=italic, 4=bold italic, 5=symbol. Default: 1 |
... |
further arguments passed to or from other methods |
the CLUSTATIS graphs
clustatis
, clustatis_kmeans
data(smoo)
NameBlocks=paste0("S",1:24)
cl=clustatis(Data=smoo,Blocks=rep(2,24),NameBlocks = NameBlocks)
plot(cl, ngroups=3, Graph_dend=FALSE)
plot(cl, ngroups=3, Graph_dend=FALSE, axes=c(1,3))
graphics.off()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.