Add An Export Module to Shiny-app for Highcharts Figure
###1. Extract the SVG element and fill it to textInput.
###2. Convert SVG file to other formats under Linux.
There are several programs can convert svg file to other formats, I choose inkscape. To install it, run this command:
After installing it on your server, we can call it through R using system command:
We can also add an option to change the dimension of the figure:
And to export the figure data is even simple:
where p$data was assign before. Here is a demo, and you can find the source code on my gist.