SHARE
TWEET

Untitled

a guest Sep 13th, 2017 58 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. URL <- paste0(
  2.         "https://cdn.rawgit.com/christophergandrud/networkD3/",
  3.         "master/JSONdata/energy.json")
  4. Energy <- jsonlite::fromJSON(URL)
  5. # Plot
  6. sankeyNetwork(Links = Energy$links, Nodes = Energy$nodes, Source = "source",
  7.              Target = "target", Value = "value", NodeID = "name",
  8.              units = "TWh", fontSize = 12, nodeWidth = 30)
RAW Paste Data
Top