You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I tried to repopulate timelyportfolio's sankey plot on my machine and publish it. The plot works fine on my machine, but when I publish it to RPubs, the plot is not populated... I've tried to publish other plots, e.g. boxplots built using ggplot2, and they work completely fine.
Here is the code I used:
g <- graph.tree(40, children = 4)
E(g)$weight = 1
edgelist <- get.data.frame(g) #this will give us a data frame with from,to,weight
colnames(edgelist) <- c("source","target","value")
I tried to repopulate timelyportfolio's sankey plot on my machine and publish it. The plot works fine on my machine, but when I publish it to RPubs, the plot is not populated... I've tried to publish other plots, e.g. boxplots built using ggplot2, and they work completely fine.
Here is the code I used:
g <- graph.tree(40, children = 4)
E(g)$weight = 1
edgelist <- get.data.frame(g) #this will give us a data frame with from,to,weight
colnames(edgelist) <- c("source","target","value")
edgelist$source <- as.character(edgelist$source)
edgelist$target <- as.character(edgelist$target)
sankeyPlot2 <- rCharts$new()
sankeyPlot2$setLib('./rCharts_d3_sankey-gh-pages/')
sankeyPlot2$setLib('http://timelyportfolio.github.io/rCharts_d3_sankey/libraries/widgets/d3_sankey')
sankeyPlot2$set(
data = edgelist,
nodeWidth = 15,
nodePadding = 10,
layout = 32,
width = 960,
height = 500
)
sankeyPlot2
sankeyPlot2$publish('sankeyPlot2', host='rpubs')
The text was updated successfully, but these errors were encountered: