Add SVG export to interactive plot ? (ggplot + ggplotly)

I have a plot generated with ggplot2. I use ggplotly to turn it into a plotly-style interactive graph. I implement this in my Shiny app, because the interactive features are nice for users.

However, there are many requests for users to download plots as SVG images. How can I achieve this specifically with ggplotly? The current download option is png by default:

Minimal reproducible example:


my_plot <- ggplot(mtcars, aes(x=cyl, y=mpg)) + geom_point()

This topic was automatically closed 21 days after the last reply. New replies are no longer allowed.

If you have a query related to it or one of the replies, start a new topic and refer back with a link.