You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
As a researcher, the main purpose of plotting is to put it in my article, I usually specify the base_size as 7 in the ggplot2's theme() to meet the journal's requirements, and then save it as svg with ggsave(), specifying, for example, the width as 40mm and the height as 32mm.
But in order to confirm the effect, I need to keep switching between vscode and edge. Is there any way to preview it directly in httpgd?
I don't think this is supported (either by the VSCode R extension or in RStudio). However, I had the same need so knocked together a pair of functions to display a plot at a specified size in VSCode.
Activity
ccsarapas commentedon Mar 25, 2025
I don't think this is supported (either by the VSCode R extension or in RStudio). However, I had the same need so knocked together a pair of functions to display a plot at a specified size in VSCode.
Use like:
I put this in my user .Rprofile inside
if (Sys.getenv("TERM_PROGRAM") == "vscode") { }.ThomasSoeiro commentedon Sep 22, 2026
@grantmcdermott perhaps it can either be closed as not planed or added it to a milestone?