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
<!-- LineChart generated in R 3.1.0 by googleVis 0.5.2 package --> <!-- Mon May 5 18:53:13 2014 --> <!-- jsHeader --> <script type="text/javascript"> // jsData function gvisDataDashed () { var data = new google.visualization.DataTable(); var datajson = [ [ "A", 10, 23 ], [ "B", 13, 12 ], [ "C", 14, 32 ] ]; data.addColumn('string','label'); data.addColumn('number','val1'); data.addColumn('number','val2'); data.addRows(datajson); return(data); } // jsDrawChart function drawChartDashed() { var data = gvisDataDashed(); var options = {}; options["allowHtml"] = true; options["width"] = 500; options["height"] = 350; options["title"] = "Customising lines"; options["series"] = [{color:'green', targetAxisIndex: 0, lineWidth: 1, lineDashStyle: [2,2,20,2,20,2]}, {color: 'blue',targetAxisIndex: 1, lineWidth: 2, lineDashStyle: [4, 1]}]; options["vAxes"] = [{title:'val1'}, {title:'val2'}]; var chart = new google.visualization.LineChart( document.getElementById('Dashed') ); chart.draw(data,options); } // jsDisplayChart (function() { var pkgs = window.__gvisPackages = window.__gvisPackages || []; var callbacks = window.__gvisCallbacks = window.__gvisCallbacks || []; var chartid = "corechart"; // 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(drawChartDashed); })(); function displayChartDashed() { 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=displayChartDashed"></script> <!-- divChart --> <div id="Dashed" style="width: 500px; height: 350px;"> </div>