Assign labels to igraph communities
Source:R/jamenrich-communities-nodegroups.R
label_communities.RdAssign labels to igraph communities
Usage
label_communities(
wc,
labels = NULL,
add_catchwords = NULL,
num_keep_terms = 3,
keep_terms_sep = ",\n",
...
)Arguments
- wc
communitiesobject, orlistin form of nodegroups, which is alistofcharactervectors that containigraphnode names.- labels
charactervector of optional labels to assign directly to community clusters. When not defined, the auto-detection method is used.- add_catchwords
characterof optional words to include as catchwords, to be excluded from use in the final label.- num_keep_terms
integermaximum number of terms to be included in the final output label, when auto-detection is used.- keep_terms_sep
characterstring used as a delimited to separate each term when multiple terms are concatenated together to form the cluster label.- ...
additional arguments are ignored.
Value
communities or list format matching the input wc format.
When
communitiesis input, additional valuecluster_nameswill contain acharactervector of names corresponding to each integer index inwc$membership.When
nodegroupsis input, thelistnames will be acharactervector of cluster labels.
See also
Other jam igraph functions:
cnet2df(),
cnet2im(),
cnetplotJam(),
cnetplot_internalJam(),
color_edges_by_nodegroups(),
color_edges_by_nodes(),
color_edges_by_nodes_deprecated(),
color_nodes_by_nodegroups(),
communities2nodegroups(),
drawEllipse(),
edge_bundle_bipartite(),
edge_bundle_nodegroups(),
enrichMapJam(),
fixSetLabels(),
flip_edges(),
get_bipartite_nodeset(),
highlight_edges_by_node(),
igraph2pieGraph(),
jam_igraph(),
jam_plot_igraph(),
layout_with_qfr(),
layout_with_qfrf(),
mem2emap(),
memIM2cnet(),
mem_multienrichplot(),
nodegroups2communities(),
rectifyPiegraph(),
relayout_with_qfr(),
removeIgraphBlanks(),
removeIgraphSinglets(),
reorderIgraphNodes(),
rotate_igraph_layout(),
spread_igraph_labels(),
subgraph_jam(),
subsetCnetIgraph(),
subset_igraph_components(),
sync_igraph_communities(),
with_qfr()