How can I distribute R visualizations to other users that don't have R?
I have a created a Sankey diagram in R based on the following code (Link), which works great:
library(networkD3)
library(jsonlite)
library(magrittr)
energy <- "http://ift.tt/22Eg0rG" %>%
fromJSON
sankeyNetwork(Links = energy$links,
Nodes = energy$nodes,
Source = "source",
Target = "target",
Value = "value",
NodeID = "name",
units = "TWh",
fontSize = 12,
nodeWidth = 30)
But, how can I pass this diagram to other users? I was thinking maybe to render it in a web page, but I don't know how.
Any ideas?
Thanks
Aucun commentaire:
Enregistrer un commentaire