ihierarchy {inetwork} | R Documentation |
Given the communities identified by icommunity
, the function displays the hierarchical structure of the communities within communities in the network.
ihierarchy(clusters, fan = FALSE, spread = 1)
clusters |
the object returned by icommunity |
fan |
a logical variable indicating whether the plot is arched or not |
spread |
the distance between the communities along the arc |
In the hierarchy, the length of a vertical bar indicates the gain in modularity resulting from the division underneath the shoulder of the bar. (Specifically, length=(Delta Q)^(-1/3) with Delta Q in clusters$Q
.) One of the applications is to best identify the (number of) communities together with information other than network connectivity. When the size of the network and/or the number of identified communities become large, display of the communities/vertices can be along concentric arcs or circles by setting fan=TRUE
. The distances between the communities on the arcs can be further tuned by spread
.
Sun-Chong Wang
## load example networks data(icashflow) ## hierarchical community structure in the network ihierarchy(icommunity(cf9,labelcf9)) ## display the communities along arcs ihierarchy(icommunity(cf9,labelcf9),fan=TRUE,spread=0.5) ## the separations are increased ihierarchy(icommunity(cf9,labelcf9),fan=TRUE,spread=1.7)