label_communities: Assign labels to igraph communities

label_communitiesR Documentation

Assign labels to igraph communities

Description

Assign labels to igraph communities

Usage

label_communities(
  wc,
  labels = NULL,
  add_catchwords = NULL,
  num_keep_terms = 3,
  keep_terms_sep = ",\n",
  ...
)

Arguments

wc

communities object, or list in form of nodegroups, which is a list of character vectors that contain igraph node names.

labels

character vector of optional labels to assign directly to community clusters. When not defined, the auto-detection method is used.

add_catchwords

character of optional words to include as catchwords, to be excluded from use in the final label.

num_keep_terms

integer maximum number of terms to be included in the final output label, when auto-detection is used.

keep_terms_sep

character string 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 communities is input, additional value cluster_names will contain a character vector of names corresponding to each integer index in wc$membership.

  • When nodegroups is input, the list names will be a character vector of cluster labels.

See Also

Other jam igraph functions: cnet2df(), cnet2im(), cnetplotJam(), cnetplot_internalJam(), color_edges_by_nodegroups(), color_edges_by_nodes_deprecated(), color_edges_by_nodes(), color_nodes_by_nodegroups(), communities2nodegroups(), drawEllipse(), edge_bundle_bipartite(), edge_bundle_nodegroups(), enrichMapJam(), fixSetLabels(), flip_edges(), get_bipartite_nodeset(), igraph2pieGraph(), jam_igraph(), jam_plot_igraph(), layout_with_qfrf(), layout_with_qfr(), 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()


jmw86069/multienrichjam documentation built on Nov. 3, 2024, 10:29 p.m.