Download the output plot in shiny app






















To control the brush behavior, use brushOpts. Render a renderPlot or renderImage within an application page. The arguments clickId and hoverId only work for R base graphics see the graphics package.

They do not work for grid -based graphics, such as ggplot2 , lattice , and so on. Plots and images in Shiny support mouse-based interaction, via clicking, double-clicking, hovering, and brushing. Add Google Analytics to a Shiny app. Packaging JavaScript code for Shiny. Communicating with Shiny via JavaScript. Debugging Shiny applications. Write error messages for your UI with validate.

Shiny testing overview. Server function testing with Shiny. Modularizing Shiny app code. Communication between modules. Shiny App Usage Tracking. Performance and scalability. Using caching in Shiny to maximize performance. Improving scalability with async programming.

Scaling and Performance Tuning with shinyapps. Deploying Shiny apps to the web. Getting started with shinyapps. Authentication and authorization model for shinyapps. Hi barret , thank you for the reply. R ] Error in.

I'd change your downloadHandler's filename argument to end in. Also, you can remove the last line, the one that returns the list. Learn more. Asked 3 years, 9 months ago. Active 3 years, 9 months ago. Viewed times. The following code in for the UI section.

Improve this question. Add a comment. Active Oldest Votes. It's hard to fully answer this without a minimal reproducibile example , but here's what I would try: Create gr outside of renderPrint Use gr in downloadHandler Rewrite downloadHandler to include content and filename arguments Here's a minimal example with the same logic as your app, i.

Improve this answer. Hallie Swan Hallie Swan 2, 1 1 gold badge 11 11 silver badges 19 19 bronze badges.



0コメント

  • 1000 / 1000