Learn R Programming

CINNA (version 1.2.2)

visualize_dendrogram: Dendrogram plot among centrality measures

Description

This function demonstrates the vertice dendrogram of a graph based on a centrality type.

Usage

visualize_dendrogram(
  x,
  centrality.type = "Degree Centrality",
  computed_centrality_value = NULL,
  k = 4
)

Value

The function generates a dendrogram plot of a graph's vertices based on a centrality measure. The function takes an igraph object `x` as input, representing the graph. The `centrality.type` parameter specifies the type of centrality measure to be considered (default is "Degree Centrality"). If the `computed_centrality_value` parameter is provided, it should be a vector containing the computed centrality values for each node. Otherwise, the function will compute the specified centrality measure for the graph. The `k` parameter specifies the number of clusters to be formed from the dendrogram (default is 4). The function creates a dendrogram plot of the vertices, where the branching structure represents the hierarchical clustering based on the centrality measure. The function returns the dendrogram plot.

Arguments

x

an igraph object

centrality.type

The type of centrality which should be considered.(default="Degree Centrality")

computed_centrality_value

A vector containing the values of calculated centrality measure for each node.(default=NULL)

k

number of clusters(default=4)

Author

Minoo Ashtiani, Mehdi Mirzaie, Mohieddin Jafari

References

Galili, T. (2015). dendextend: an R package for visualizing, adjusting and comparing trees of hierarchical clustering. Bioinformatics, 31(22), 3718–3720.