简体   繁体   English

如何使用downloadHandler下载闪亮的rCharts图

[英]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.

相关问题 如何在 Shiny 上通过 downloadHandler 下载工作簿? - How to download workbook via downloadHandler on Shiny? 如何使用R Shiny downloadHandler下载ggplotly图? - How to download a ggplotly plot with R Shiny downloadHandler? 如何使用downloadHandler在闪亮的数据表中创建下载按钮? - How to use downloadHandler for the download button create inside shiny datatable? R Shiny downloadHandler返回app html而不是绘图或数据 - R Shiny downloadHandler returns app html rather than plots or data 在 R Shiny 中调用 downloadHandler 函数时,如何生成带有选择提示下载哪个对象的弹出窗口? - How to generate a pop up with a selection prompt for which object to download when invoking the downloadHandler function in R shiny? 如何在 R Shiny 中只用一个下载按钮下载多个图? - How to download multiple plots with only one download button in R shiny? 如何在一个下载按钮中下载几个png图 - How to download several png plots within one download button in shiny 如何使用变量contentType实现R Shiny downloadHandler? - How to implement R Shiny downloadHandler with variable contentType? 如何在 shiny 模块中使用 downloadButton 和 downloadHandler - how to use downloadButton and downloadHandler inside a shiny module 使用动态 downloadHandler() 从闪亮的应用程序下载动态绘图图 - Download a dynamic plotly graph using dynamic downloadHandler() from a shiny app
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM