Is there a way to colour the edges of the network using the package networkD3
in R? All I have seen is ways of colouring the nodes but I have not seen anything regarding colouring the edges? Thanks
see the help file with ?simpleNetwork
it describes all the possible arguments, including...
linkColour - character string specifying the colour you want the link lines to be. Multiple formats supported (eg 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")
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.