reduceLabelOverlap: Reduce overlap of labels in igraph network

Description Usage Arguments Value

Description

This function does not yet work properly. The idea is to use the wordlayout function of the wordcloud package to arrange nodes in order to prevent label overlap.

Usage

1
2
reduceLabelOverlap(g, labeldist_coef = 1.5, cex_from_device = F,
  label.attr = "label", labelsize.attr = "label.cex")

Arguments

g

A graph in the Igraph format, which has the g$layout attribute (set by using the layout. functions)

fontsize_multiplier

The wordlayout function takes fontsize into account to determine overlap. As a temporary solution, increasing font size decreased label overlap (but messes up the network if done extremely)

Value

a network layout, to be assigned to g$layout


kasperwelbers/semnet documentation built on May 20, 2019, 7:38 a.m.