visNetworkのオプション(visLayout、visOptions、visPhysicsなど)を調整して、マインドマップに似たネットワークビジュアリゼーションを取得できますか?visNetwork Rパッケージ(vis.js javascriptライブラリを使用したネットワークの視覚化)を使用したマインドマップのようなレイアウト
そして、ここでは、同じデータを描画するvisNetwork
を使用してR
に私の再現性の例です:
nodes <- 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 <- 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) %>%
visOptions(highlightNearest = TRUE, nodesIdSelection = TRUE) %>%
visLayout(randomSeed = 1)
このコードは、この可視化を生成します。
だから、最初の人物ははるかにクリーンで読みやすく、使いやすいことが分かります。 visNetwork
パラメータ(vis.jsパラメータ)を微調整して、結果をここの最初の図と比較的似ていますか?
基本的には、メイントピックを中心にしていて、メイントピックの周りに放射状に配置された次のレベルのトピックと、互いに関連したレベル(リストの一種)です。
[networkD3](https://christophergandrud.github.io/networkD3/)パッケージから –