How to export graphs generated with the dygraphs package in R to png?
<p>How can I export a plot generated with the R package "dygraphs" to a png file?</p>

<pre><code>library(dygraphs)
sample_dat &lt;- data.frame(1:1000, rnorm(1000))
dygraph(sample_dat)
</code></pre>