timelyportfolio / rCharts_d3_sankey

rCharts implementation of d3 sankey plugin
54 stars 87 forks source link

Should the plot display in RStudio? #4

Open medined opened 10 years ago

medined commented 10 years ago

I following the steps and everything is looking good until I try the print step and then I see only HTML instead of the plot. Can this technique be used inside RStudio?

sankeyPlot$print(chartId = 'sankey1')

libraries/widgets/d3_sankey/layouts/chart.html

nailez commented 8 years ago

Hi,

I am using R studio and simply used the plot object name to get it to display in the RStudio HTML viewer.

sankeyPlot <- rCharts$new()

#need to download this tarball from here and unzip 
#https://github.com/timelyportfolio/rCharts_d3_sankey
#remember where you put it!
sankeyPlot$setLib('C:/Users/x/AppData/R/rcharts_d3_sankey-gh-pages')

sankeyPlot$set(
  data=edgelist, 
  nodeWidth= 15,
  nodePadding = 10, 
  layout = 32,
  width=960,
  height=500
)

sankeyPlot