There's more...

Here are some settings that you can change for the Yifan Hu layout algorithm to come up with the best possible layout for the graph under consideration:

  • Quadtree Max Level: This defines the maximum level for the quadtree representation. A quadtree is a tree where each non-leaf node has exactly four children. The quadtree representation essentially places each node of the tree in a matrix, with four neighbors being its children. A higher value of this parameter results in higher accuracy and vice versa.
  • Theta: This defines the approximation coefficient for the Barnes-Hut algorithm. A small value of theta would mean high accuracy.
  • Optimal Distance: The edges in the graph in the Yifan Hu algorithm are visualized and assumed ...

Get R Data Analysis Cookbook - Second Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.