tidyverse / tidyverse/ggplot2

Should the output gtable have a predictable shape?

Open
#5,628 0 comments 3 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

internals :mag_right:
Dominant language
R
Stars
7k
Forks
2.1k
Avg merge
59m
Merged PRs (30d)
2

Description

Currently, it is hard to guess which component of a plot goes into which cell in the gtable.
Some components, like axes, titles and (since recently) legends always get associated rows/columns in the gtable.
Other components, like facet strips, only get rows/columns in the gtable when they are present.
It might make it easier to perform operations at the gtable level if the structure was predictable, which may come up in packages like {patchwork}.

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 examining how axes, titles, legends, and facet strips are assigned rows and columns in the output gtable. Compare the current structure with the needs described for gtable-level operations and packages such as patchwork. Done means the project has a decided, predictable structure and corresponding validation.

Written by the indexing model from the issue text.

Assessment

Tech stack
r
Domain
data-visualization
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.