Open cebriggs7135 opened 3 years ago
Apparently http://rawgit.com has been shut down. You can access the same dataset directly from this repo at: https://raw.githubusercontent.com/christophergandrud/networkD3/master/JSONdata/energy.json
library(networkD3)
URL <- "https://raw.githubusercontent.com/christophergandrud/networkD3/master/JSONdata/energy.json"
Energy <- jsonlite::fromJSON(URL)
sankeyNetwork(Links = Energy$links, Nodes = Energy$nodes, Source = "source",
Target = "target", Value = "value", NodeID = "name",
units = "TWh", fontSize = 12, nodeWidth = 30)
Thanks very much.
Can you please address this issue? I've successfully run the sample code from https://rdrr.io/cran/networkD3/f/README.md up to the Sankey Diagram: