bubble_clust {deepMOU} R Documentation

Bubble plot

Description

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.

Usage

bubble_clust(
x,
clusters,
bubble_size = 1,
bubble_col = c("red", "white"),
cex_text = 1,
main = NULL
)


Arguments

 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 "red" and "white"). The first (darker) color will denote homogeneous clusters, while the latter (lighter) more heterogeneous ones. cex_text Size of texts inside bubbles. main A title for the plot.

Value

A graphical aid to visualize and to describe the obtained clusters.

Examples

# 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 )



[Package deepMOU version 0.1.1 Index]