Wednesday, 15 September 2010

r - rCharts Sankey Diagram not plotting -


Using this code, I am unable to see the conspiracy. I am using rStudio and I am looking into the "Viewer" window URL

I have to mess something, but I can not find any error or warning, and Can not find solution

  is required (rCharts) required (plyr) gallery & lt; -. Read.csv ("https://docs.google.com/spreadsheet/pub?key=0AovoNzJt5GetdEhQVDgyYXpJMnZ2M2J2YmtvX0I5Snc&output = CSV", stringsAsFactors = false) gallery.use & lt; - Gallery [, C ("Technology", "visualizationType", "documentType", "Author")] colnames (gallery.use) & lt; - Representative ("Columns", 4) gallery.edge & lt; - rbind (gallery.use [, 1: 2], gallery.use [, 2: 3], gallery.use [, 3: 4], deparse.level = 1) colnames (gallery .edge) & lt; --C ("source", "target") gallery.edge & lt; - ddply (gallery.edge, ~ source + target, nrow) colnames (gallery.edge) & lt; - C ("source", "target", "value") # Verify that no source = target # or unlimited loop will not be connected to the gallery. Gauge [joe (gallery.gege [, 1] == gallery. Post [, 2]),] gallery. Advance $ source & lt; - as.character (gallery.edge $ sou rce) gallery.edge $ target & lt; - as.character (gallery.edge $ target) sankeyPlot2 & lt; - rCharts new $ () sankeyPlot2 $ setLib ('http://timelyportfolio.github.io/rCharts_d3_sankey/') sankeyPlot2 $ set (data = gallery.edge, nodeWidth = 15, nodePadding = 10, layout = 32, width = 960 , Height = 500) If you have more than one chart d3.selectAll ('# {{chartId}} svg path.link') in the case of sankeyPlot2 $ setTemplate (afterScript = "& lt; script> Style ('stroke', function (d) {// Here we will use the source color // if you want the target then the sub target for the source / or if you want to do something other than brown, // one Sustained // Use or use a clear scale or gradient return d.source.color;}) / Notes No changes were made for ambiguity // was done to comment down but will affect mouseover //, so that the mouseover And need to define mouseouts // How to show it how to do it // Style ('stroke-opacity', .7)  ") SankeyPlot2  

Problem solving Package was installed incorrectly.


No comments:

Post a Comment