Saturday, 15 May 2010

r - How to save interactive charts from dygraph -


I build interactive graph using dygraph . I can see them in the R studio and browser in the "viewer" window.

What is the most convenient way to save these plots? Can i mail them

I R-Studio 0.98.507 runs and I sessionInfo () gives:

  R version 3.1.0 (2014-04-10 ) platforms: x86_64-W64-mingw32 / 64 (64-bit) location: [1] LC_COLLATE = German_Austria.1252 LC_CTYPE = German_Austria.1252 LC_MONETARY = German_Austria.1252 LC_NUMERIC = C [5] LC_TIME = German_Austria.1252 attached base packages: [1] Statistics graphics grDevices utils dataset methods based on other enclosed packages: [1] PerformanceAnalytics_1.1.0 xts_0.9-7 zoo_1.7-11 MASS_7.3-33 [5] cluster_1.15.2 RODBC_1.3-10 a namespace is loaded through (not attached): [1] grid_3.1.0 lattice_0.20-29 tools_3.1.0  

htmlwidgets a saveWidget which function lets you save out full view as a standalone (or mixed) HTML file .

As Miho said, you can knit them well

You do not need interactivity, you also save SVG out of the visible footage in a browser. (Which is unlikely in case of dygraphs). Regarding "weaving" with

, here is a sample R. Markdown document with a dygraph in it:

  --- Title: Example of "dygraphs knit" Author: "Bob Rudis (@hrbrmstr)" Date: "March 17, 2015" Output: html_document --- `` `r} Library (Digraphs) Diagram (NHTMP, Main =" New Haven Tapture ")% & gt; % DyRangeSelector (dateWindow = c ("1920-01- 01", "1960-01-01") ``  

knit that in RSTideo and with this visualization a self -Help will generate HTML.


No comments:

Post a Comment