0

我正在使用tkplot生成交互式图表。在tkplot文档中它说用户可以右键单击边缘,它将显示边缘权重。但是,在图表上右键单击(在 Mac 上)只选择边缘而没有其他效果?

下面是我用来测试的一些简单示例代码tkplot

library(igraph)

edgeW <- c(1,2,10,3,4)  # Edge weight
edgeDir <- c(1,2, 1,3, 1,4, 1,5, 2,3, 2,4, 2,5, 3,4, 3,5, 4,5) #Direction
nodeName <- c("A","B","C","D","E") # Node Names

net.xy <- make_graph(edgeDir, 5, directed = F) # make graph
V(net.xy)$label <- nodeName # set names
E(net.xy)$width <- edgeW # set edge weight

tkplot(net.xy) # plot

这将打开一个显示 的窗口tkplot,但是在右键单击任何内容时,它只会选择节点/边并且不显示任何信息。

关于我在这里做错了什么有什么建议吗?

4

0 回答 0