title: mindmap-like layout using visNetwork R package (network visualization using vis.js javascript library)
body: <p>Is it possible to tweak visNetwork's options (e.g. visLayout, visOptions or visPhysics) to obtain a network visualization that resembles a mindmap?</p>
  
  <p>I want to obtain something like this:
  <a href="https://i.stack.imgur.com/JDH8g.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/JDH8g.png" alt="Produced using Mindomo"></a></p>
  
  <p>And here's my reproducible example in <code>R</code> using <code>visNetwork</code> to draw the same data:</p>
  
  <pre><code>nodes &lt;- structure(list(id = 1:22, label = structure(c(14L, 20L, 19L, 
                                                         16L, 12L, 18L, 2L, 17L, 22L, 8L, 13L, 3L, 4L, 5L, 6L, 7L, 21L, 
                                                         15L, 9L, 1L, 10L, 11L), .Label = c("A seemengly impossible mission\n", 
                                                                                         "Another \n", "Detail 1\n", "Detail 2\n", "Detail 3\n", "Detail 4\n", 
                                                                                         "Detail 5\n", "Do you know where is Dover?\n", "Dover Castle\n", 
                                                                                         "Finally, I'm the fifth\n", "I'm alone", "I'm relatively short\n", 
                                                                                         "Let's say there is a third one\n", "Main topic\n", "Operation Dynamo\n", 
                                                                                         "or, I'm even longer and perhaps I need some more space\n", "Running out of imagination\n", 
                                                                                         "Shorter\n", "Some longer text goes here\n", "Thing 1\n", "Thing number 4\n", 
                                                                                         "What can happen?\n"), class = "factor"), shape = structure(c(1L, 
                                                                                                                                                    1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 
                                                                                                                                                    1L, 1L, 1L, 1L, 1L), class = "factor", .Label = "box")), .Names = c("id", 
                                                                                                                                                                                                                      "label", "shape"), row.names = c(NA, -22L), class = "data.frame")
  
  edges &lt;- structure(list(from = c(1L, 2L, 2L, 2L, 2L, 1L, 7L, 7L, 7L, 1L, 
                                   11L, 11L, 11L, 11L, 11L, 1L, 17L, 17L, 17L, 1L, 21L), to = 2:22, 
                          arrows = structure(c(1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 
                                               1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L), .Label = "to", class = "factor")), .Names = c("from", 
                                                                                                                                             "to", "arrows"), row.names = c(NA, 21L), class = "data.frame")
  library(visNetwork)
  visNetwork(nodes, edges) %&gt;%
      visOptions(highlightNearest = TRUE, nodesIdSelection = TRUE) %&gt;%
      visLayout(randomSeed = 1)
  </code></pre>
  
  <p>This code produces this visualization:</p>
  
  <p><a href="https://i.stack.imgur.com/v8jHz.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/v8jHz.png" alt="enter image description here"></a></p>
  
  <p>So you can see that the first figure is much cleaner and easier to read and use. Is it possible to tweak <code>visNetwork</code> parameters (vis.js parameters) so as to make the result relatively similar to the first figure here?</p>
  
  <p>Basically it is like to have a central main topic, then the next level topics arranged radially around the main topic, and further levels staked up on each other (kind of a list).</p>