briatte / ggnet

Network visualization with ggplot2
https://briatte.github.io/ggnet/
194 stars 33 forks source link

Moving node labels #28

Closed andreabduque closed 5 years ago

andreabduque commented 7 years ago

Hello, is there an option to move node labels from the center of the node? I'd like to put them under the nodes because my labels are too big! Thank you!

briatte commented 5 years ago

Hi @andreabduque

All apologies for leaving your question unanswered for so long.

The answer to issue #34 applies here: you will need a more advanced network plotting function to do that, in order to use ggrepel on your node labels.

The magic of ggrepel can be applied to network visualization using either my other network visualization function, ggnetwork (see the relevant part of the vignette), or the even more powerful and flexible ggraph package. (Copied from #34).

Hope this helps!