REditorSupport / REditorSupport/vscode-R

How to preview a plot using absolute size

Open
#1,583 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

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

Description

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?

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

Start by investigating how httpgd is integrated into the vscode-R extension and whether it currently supports previews at an absolute size. Compare that behavior with the issue's ggplot2 theme(), ggsave(), SVG, width, and height example; done means determining and documenting whether the requested preview is supported or what implementation scope is required.

Written by the indexing model from the issue text.

Assessment

Tech stack
r, vscode
Domain
data-visualization, tooling
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.