I have created an rpgm application which includes a plotly graphic.
I would like to export it as a static version (.png) when I press a button, but I haven’t managed to write a code that works.
Is it even possible ? And if so, should I use the R save_image command in the plotly library? Or use a command inherited from javascript?
Sorry for the delay. You can normally hover your mouse on a plotly graphic and click on the small camera icon to download the current state of the graphic as a png.
To have more control over how the graphic will export or look as an image, I’m afraid you have to create the image “from scratch” using other libraries directly from R or Javascript.