REditorSupport / REditorSupport/vscode-R

Poor exported plot resolution

Open
#1,656 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

bug
Dominant language
TypeScript
Stars
1.2k
Forks
139
Avg merge
2h 46m
Merged PRs (30d)
5

Description

Describe the bug

I'm using a macbook, so a high resolution screen. I enabled the httpgd plot panel, it looks great, as if rendering svg plots, but once I export a plot the resolution is very low dpi. I don't see any way to change that other than exporting to svg, which is not my goal.

To Reproduce

  1. Open the R terminal
  2. Create a simple plot like plot(c(1,2,3))
  3. Export it from the plot viewer

Can you fix this issue by yourself? (We appreciate the help)

No

(If yes,) can we assist you with anything?

A new setting to set export resolution or some workaround that I'm missing.

(If applicable) Please attach setting.json

  "r.rterm.mac": "/Users/carlos/.venv/bin/radian",
  "r.bracketedPaste": true,

Expected behavior
A clear and concise description of what you expected to happen.

Screenshots

Image

Environment (please complete the following information):

  • OS: macOS
  • VSCode Version: 1.106.3
  • R Version: 4.5.2
  • vscode-R version: 2.8.6

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

No file or test is named in the issue; start by reproducing the export from the VS Code plot viewer with the provided R example and compare it with the viewer's high-resolution display. Done means exported raster plots are clear at an appropriate resolution, either through a usable resolution setting or an equivalent fix.

Written by the indexing model from the issue text.

Assessment

Tech stack
r, vscode
Domain
data-visualization, desktop
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.