posit-dev / positron

Positron, a next-generation data science IDE
Other
1.19k stars 32 forks source link

Possibility to open plots in a browser to adjust scaling #3765

Open strengejacke opened 2 days ago

strengejacke commented 2 days ago

What I like about VSCode (and which you cannot achieve as easy in RStudio) is the possibility to open plots in a browser, to adjust the scaling / zoom / dimensions, and then save the plot. This is useful to create plots for presentations or reports, where high DPI is not that crucial (in the latter case, I use ggsave(), trying to find the best looking dimensions/scaling with several attempts).

See this video of the feature I mean. Would be great to have something similar in Positron. Main point is the flexible scaling so that you immediately see the proportions/dimensions of the plot before you copy to clipboard or save to file.

https://github.com/posit-dev/positron/assets/26301769/8ce44e01-f019-4f33-a021-92991396d81f

juliasilge commented 1 day ago

Related to #2270 but a somewhat different possibility

strengejacke commented 1 day ago

I think I'm fine if you can do this inside the plot pane instead of opening a browser. For high resolution I would use ggsave(), anyway. It's mainly to copy plots into word or presentations, where you don't need print quality (which is still often the case, either for internal reports or whatever).