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:37:34 2014 --> <!-- jsHeader --> <script type="text/javascript"> // jsData function gvisDataUKvisits () { var data = new google.visualization.DataTable(); var datajson = [ [ "France", "UK", 3.816 ], [ "Germany", "UK", 3.18 ], [ "USA", "UK", 2.862 ], [ "Irish Republic", "UK", 2.544 ], [ "Netherlands", "UK", 1.908 ], [ "Spain", "UK", 1.908 ], [ "Italy", "UK", 1.59 ], [ "Poland", "UK", 1.272 ], [ "Belgium", "UK", 1.272 ], [ "Australia", "UK", 0.954 ], [ "Other countries", "UK", 10.494 ], [ "UK", "Scotland", 2.2 ], [ "UK", "Wales", 0.9 ], [ "UK", "Northern Ireland", 0.4 ], [ "UK", "England", 12.8 ], [ "UK", "London", 15.5 ] ]; data.addColumn('string','origin'); data.addColumn('string','visit'); data.addColumn('number','weights'); data.addRows(datajson); return(data); } // jsDrawChart function drawChartUKvisits() { var data = gvisDataUKvisits(); var options = {}; options["width"] = 500; options["height"] = 250; options["sankey"] = {link:{color:{fill:'lightblue'}}}; var chart = new google.visualization.Sankey( document.getElementById('UKvisits') ); 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(drawChartUKvisits); })(); function displayChartUKvisits() { 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=displayChartUKvisits"></script> <!-- divChart --> <div id="UKvisits" style="width: 500px; height: 250px;"> </div>