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:
library(ggplot2) library(plotly) my_plot <- ggplot(mtcars, aes(x=cyl, y=mpg)) + geom_point() ggplotly(my_plot)