0
如果有一個簡單的例子(用於數據見下文),我可以想像如下的網絡的:簡單交互式可視化,使用R
[![網絡] [1] [1]
我問題是,我想使用彈出窗口來顯示更多信息(不適合圖形)。問題是:我該如何做到這一點? 我發現了很多東西,但是我無法讓這個例子工作,這可能是由於我從未用Java編寫過的。我也應該說,我不需要花哨/複雜的3D內容。只需一個彈出窗口就能完成這項工作
任何幫助,高度讚賞!
鏈接:
- presentation:我無法重現的例子,我覺得我不需要那麼多。
- tutorial第7.1章:我無法重現的例子
下面是數據
library(ggraph)
library(igraph)
nodes <- c("cool_fun", "mysum", "mydot", "myfun", "stupid_fun")
list_edges <- structure(list(
cool_fun = structure(list(edges = character(0),
weights = numeric(0)),
.Names = c("edges", "weights")),
mysum = structure(list(edges = character(0),
weights = numeric(0)),
.Names = c("edges", "weights")),
mydot = structure(list(edges = character(0),
weights = numeric(0)),
.Names = c("edges", "weights")),
myfun = structure(list(edges = c("mysum", "mydot"),
weights = c(1, 1)),
.Names = c("edges", "weights")),
stupid_fun = structure(list(edges = character(0),
weights = numeric(0)),
.Names = c("edges", "weights"))),
.Names = c("cool_fun", "mysum", "mydot", "myfun", "stupid_fun"))
my_graph <- graph::graphNEL(nodes=nodes, edgeL=list_edges, edgemode = "directed")
plot(my_graph)
也許plotly:https://plot.ly/r/network-graphs/ – boshek