You find below the HTML code of the visualisation. You can copy and paste the code into an existing HTML page. For more information see also ?print.gvis
<!-- Sankey generated in R 3.0.3 by googleVis 0.5.0-3 package --> <!-- Sun Mar 16 19:39:29 2014 --> <!-- jsHeader --> <script type="text/javascript"> // jsData function gvisDataSankeygraph () { var data = new google.visualization.DataTable(); var datajson = [ [ "A", "B", 4 ], [ "A", "C", 7 ], [ "A", "D", 4 ], [ "A", "E", 7 ], [ "B", "F", 8 ], [ "B", "G", 2 ], [ "B", "H", 5 ], [ "B", "I", 8 ], [ "C", "J", 5 ], [ "C", "K", 5 ], [ "C", "L", 9 ], [ "C", "M", 5 ], [ "D", "N", 6 ], [ "D", "O", 5 ], [ "D", "P", 3 ], [ "D", "Q", 8 ], [ "E", "R", 4 ], [ "E", "S", 2 ], [ "E", "T", 4 ], [ "E", "U", 9 ], [ "F", "V", 8 ], [ "F", "W", 6 ], [ "F", "X", 6 ] ]; data.addColumn('string','source'); data.addColumn('string','target'); data.addColumn('number','value'); data.addRows(datajson); return(data); } // jsDrawChart function drawChartSankeygraph() { var data = gvisDataSankeygraph(); var options = {}; options["width"] = 500; options["height"] = 400; options["sankey"] = {link: {color: { fill: '#d799ae' } }, node: { width: 4, color: { fill: '#a61d4c' }, label: { fontName: 'Times-Roman', fontSize: 14, color: '#871b47', bold: true, italic: true } }}; var chart = new google.visualization.Sankey( document.getElementById('Sankeygraph') ); chart.draw(data,options); } // jsDisplayChart (function() { var pkgs = window.__gvisPackages = window.__gvisPackages || []; var callbacks = window.__gvisCallbacks = window.__gvisCallbacks || []; var chartid = "sankey"; // Manually see if chartid is in pkgs (not all browsers support Array.indexOf) var i, newPackage = true; for (i = 0; newPackage && i < pkgs.length; i++) { if (pkgs[i] === chartid) newPackage = false; } if (newPackage) pkgs.push(chartid); // Add the drawChart function to the global list of callbacks callbacks.push(drawChartSankeygraph); })(); function displayChartSankeygraph() { var pkgs = window.__gvisPackages = window.__gvisPackages || []; var callbacks = window.__gvisCallbacks = window.__gvisCallbacks || []; window.clearTimeout(window.__gvisLoad); // The timeout is set to 100 because otherwise the container div we are // targeting might not be part of the document yet window.__gvisLoad = setTimeout(function() { var pkgCount = pkgs.length; google.load("visualization", "1", { packages:pkgs, callback: function() { if (pkgCount != pkgs.length) { // Race condition where another setTimeout call snuck in after us; if // that call added a package, we must not shift its callback return; } while (callbacks.length > 0) callbacks.shift()(); } }); }, 100); } // jsFooter </script> <!-- jsChart --> <script type="text/javascript" src="https://www.google.com/jsapi?callback=displayChartSankeygraph"></script> <!-- divChart --> <div id="Sankeygraph" style="width: 500px; height: 400px;"> </div>