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 O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.