label_cooccur_igraph: Extract labels for plotting 'cooccur_igraph' object
Description
label_cooccur_igraph() returns labels for plotting cooccur_igraph
object. label_cooccur_igraph
gives control of overplotting for labels (i.e. character names) by deleting
extra labels if there are too many of them. Thus, it highlights the most
significant characters of the selected play. This function can be used to set
vertex.label parameter for plot.cooccur_igraph.
Integer, maximum network size for plotting all labels.
If you don't want to delete any labels, set Inf.
top_nodes
Integer, number of labels to be plotted. Characters with the
highest number of words will be selected.
label_size_metric
Character, a metric that is used to rank characters
in a play.
Details
label_cooccur_igraph takes labels from a vertices data frame column
"name", checks that network size is more than max_graph_size,
if it is true, returns names for top top_nodes and NA for the rest.