Calculating the Coordinates for Projecting Community Labels
Source:R/community_labels.R
community_labels.Rd
Usage
community_labels(
graph,
biggest_community = FALSE,
community_threshold = 0.01,
community_name_column = "Community_name",
community_size_column = "Size_com"
)
Arguments
- graph
A tidygraph object.
- biggest_community
If true, you have the possibility to remove the smallest community, depending of the
community_threshold
you have set.- community_threshold
If
biggest_community
is true, the function selects the nodes that belong to communities which represent at least x% of the total number of nodes. By default, the parameter is set to 1%.- community_name_column
Name of the column with the name of the community to be used as label
- community_size_column
Name of the column with the total number of nodes or the share of nodes in each community.