[英]How to download rCharts plots in shiny with downloadHandler
In shiny apps ggplot2
graphs can easily be downloaded based on the downloadHandler
function. 在闪亮的应用程序中,可以根据
downloadHandler
函数轻松下载ggplot2
图表。 Is it possible to download the javascript visualisations that are produced by means of rCharts
in a similar way? 是否可以以类似的方式下载通过
rCharts
生成的javascript可视化? If yes, what is the best approach? 如果是,最好的方法是什么?
If you use the HighCharts capability of rCharts then you can use it's exporter feature which has an download capability as demonstrated here ( source ). 如果您使用rCharts的HighCharts功能,那么您可以使用它的导出器功能,该功能具有此处演示的下载功能( 源 )。
If not, you're left with DOM introspection like I ended up using here . 如果没有,你就会像我最终在这里使用的那样留下DOM内省。 That has no R behind it, but it shows how to find the SVG in the DOM and make it so the graphic is exportable in a couple different ways.
它背后没有R,但它显示了如何在DOM中找到SVG并使其可以以几种不同的方式导出图形。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.