tidyverse / tidyverse/ggplot2

Make `middle` optional aesthetic in `geom_boxplot()`.

Open
#6,780 1 comment 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

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

Description

So that you can easily construct the geometry for a candlestick chart, which looks like a boxplot box-and-whiskers, but without the median line (and without outliers). A true candlestick chart would require a specialty stat, which I'm not proposing to implement in ggplot2. I'm just proposing to remove a constraint.

By extension, geom_crossbar() should get "x|y" as required aesthetic, instead of c("x", "y").

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 locating the geom_boxplot() and geom_crossbar() entry points and inspect how their required aesthetics are declared. Done means middle is optional for geom_boxplot() and geom_crossbar() accepts either x or y as required, with the existing behavior otherwise preserved.

Written by the indexing model from the issue text.

Assessment

Tech stack
r
Domain
data-visualization
Issue type
Feature
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Clearly specified
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.