I have created a sankeyNetwork
using networkd3 in r. How can I change the color of flow lines or links? I would like to have the flow lines be the same color as the nodes.
Here is my code:
library(networkD3)
library(xlsx)
links <- read.xlsx("C:/Users/Administrator/Desktop/Book1.xlsx", sheetName = "links")
nodes <- read.xlsx("C:/Users/Administrator/Desktop/Book1.xlsx", sheetName = "nodes")
sankeyNetwork(Links = links, Nodes = nodes, Source = "source", Target = "target", Value = "value", NodeID = "Diagnosis", fontSize = 11, nodeWidth = 15, fontFamily = "arial", iterations = 0)