Description Usage Arguments Value Examples
Bi-dimensional representation (via Multi-Dimensional Scaling) of the clusters, where each bubble corresponds to a cluster, its size is proportional to the relative frequency of documents and color saturation reflects cluster cohesion.
1 2 3 4 5 6 7 8 | bubble_clust(
x,
clusters,
bubble_size = 1,
bubble_col = c("red", "white"),
cex_text = 1,
main = NULL
)
|
x |
Document-term matrix describing the frequency of terms that occur in a collection of documents. Rows correspond to documents in the collection and columns correspond to terms. |
clusters |
Integer vector of length of the number of cases, which indicates a clustering. The clusters have to be numbered from 1 to the number of clusters. |
bubble_size |
Graphical parameter for bubbles size. |
bubble_col |
Choose palette with two colors (default |
cex_text |
Size of texts inside bubbles. |
main |
A title for the plot. |
A graphical aid to visualize and to describe the obtained clusters.
1 2 3 4 5 6 7 8 | # Load the CNAE2 dataset
data("CNAE2")
# Perform parameter estimation and clustering
mou_CNAE2 = mou_EM(x = CNAE2, k = 2)
# Usage of the function
bubble_clust(mou_CNAE2$x,mou_CNAE2$clusters, bubble_size = 5 )
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.