quarto-dev / quarto-dev/quarto

VS Code feature request: Inline plots that respect chunk dimension options

Open
#287 11 comments 13 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
TypeScript
Stars
645
Forks
62
Avg merge
17h 42m
Merged PRs (30d)
13

Description

In RStudio, chunks that generate plots follow the dimensions specified in the chunk options (currently only with in-chunk options, but eventually hopefully also with YAML-style chunk options too)

image

 

In VS Code, images do not appear inline and instead either show up in a separate panel (if {httpgd} is installed), or in a separate window:

image

 

This is also the case when using the visual editor mode:

image

 

It would be helpful for figuring out figure dimensions for documents if plots could appear using the specified chunk options. But that also might just be a limitation of VS Code and/or radian and/or {httpgd} and/or something else.

Contributor guide

No contributing guide indexed for this repository

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 tracing how VS Code and visual editor sessions display R plots, comparing the current separate-panel or separate-window behavior with RStudio's chunk dimensions. Check the interaction among radian, httpgd, and chunk options, then verify that plots appear inline at the specified dimensions in both regular and visual editor modes.

Written by the indexing model from the issue text.

Assessment

Tech stack
r, typescript, vscode
Domain
data-visualization, developer-experience
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Quiet
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.