R networkD3 包:simpleNetwork() 中的边缘着色
R networkD3 package: edge coloring in simpleNetwork()
有没有办法使用 R 中的包 networkD3
为网络的边缘着色?我所看到的只是为节点着色的方法,但我还没有看到任何关于为边缘着色的方法?谢谢
查看帮助文件?simpleNetwork
它描述了所有可能的参数,包括...
linkColour - character string specifying the colour you want the link lines to be. Multiple formats supported (e.g. hexadecimal).
library(networkD3)
Source <- c("A", "A", "A", "A", "B", "B", "C", "C", "D")
Target <- c("B", "C", "D", "J", "E", "F", "G", "H", "I")
NetworkData <- data.frame(Source, Target)
simpleNetwork(NetworkData, linkColour = "green")
有没有办法使用 R 中的包 networkD3
为网络的边缘着色?我所看到的只是为节点着色的方法,但我还没有看到任何关于为边缘着色的方法?谢谢
查看帮助文件?simpleNetwork
它描述了所有可能的参数,包括...
linkColour - character string specifying the colour you want the link lines to be. Multiple formats supported (e.g. hexadecimal).
library(networkD3)
Source <- c("A", "A", "A", "A", "B", "B", "C", "C", "D")
Target <- c("B", "C", "D", "J", "E", "F", "G", "H", "I")
NetworkData <- data.frame(Source, Target)
simpleNetwork(NetworkData, linkColour = "green")