tidyverse / tidyverse/ggplot2

Documentation fixes for `coord_radial()`.

Open
#6,863 3 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

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

Description

  1. The placement of "superseded" here seems misleading, as it sits next to geom_radial(), which actually supersedes geom_polar().

  2. Is the behaviour of the last example (code below) doing what you want it to do? (There are points displayed outside the "plot area", for example.) Or is the intention to have something more like the image below (taken from a Plotnine example here).

  3. The examples don't fully exercise geom_radial(). I collected some examples (for Plotnine) here. I understand that might be too elaborate for the documentation.

Image
ggplot(mtcars, aes(disp, mpg)) +
  geom_point() +
  coord_radial(
    start = -0.4 * pi,
    end = 0.4 * pi, inner.radius = 0.3,
    thetalim = c(200, 300),
    rlim = c(15, 30),
  )

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 with the coordinate-systems reference page linked in the issue and compare its coord_radial() and geom_radial() entries with the supplied ggplot example and linked Plotnine examples. Clarify the intended plot-area behavior, correct the placement of “superseded,” and revise the examples so they better exercise geom_radial().

Written by the indexing model from the issue text.

Assessment

Tech stack
r
Domain
data-visualization, documentation
Issue type
Documentation
Difficulty
3/5
Estimated time
1-2 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.