strip.placement = "outside" and strip.switch.pad.wrap don't work together perfectly for facet_wrap.
Nobody has claimed this yet.
Assessment
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Newbie friendliness
- 45/100
- Issue type
- Bug
- Clarity
- Mostly clear
- Activity status
- Stale
- Tech stack
- r
- Domain
- data-visualization
Research direction
Start by running the supplied ggplot2 examples with facet_wrap(), strip.placement, strip.position, and strip.switch.pad.wrap. Trace how facet_wrap lays out strips and padding for bottom, left, and right positions. Done means the padding is applied consistently to all panels for each shown strip position.
Written by the indexing model from the issue text.
Description
strip.switch.pad.wrap doesn't work when strip.placement = "outside" and strip.position = "bottom":
library(ggplot2)
base <- ggplot(mtcars, aes(mpg, drat)) +
geom_point()
base + facet_wrap(~cyl) +
theme(strip.placement = "outside",
strip.switch.pad.wrap = unit(0.1,"npc"))
strip will only be added on one panel when strip.position = "bottom/left":
base + facet_wrap(~cyl,strip.position = "bottom",
ncol = 2) +
theme(strip.placement = "outside",
strip.switch.pad.wrap = unit(0.1,"npc"))
base + facet_wrap(~cyl,strip.position = "left") +
theme(strip.placement = "outside",
strip.switch.pad.wrap = unit(0.1,"npc"))
It doesn't work when strip.position = "right":
base + facet_wrap(~cyl,strip.position = "right") +
theme(strip.placement = "outside",
strip.switch.pad.wrap = unit(0.1,"npc"))
- Dominant language
- R
- Stars
- 7k
- Forks
- 2.1k
- Avg merge
- 59m
- Merged PRs (30d)
- 2
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from tidyverse/ggplot2
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
-
internals :mag_right:
Difficulty 2/5 1-3 hours Newbie friendliness 70/100
-
themes :dancer:
Difficulty 2/5 1-3 hours Newbie friendliness 64/100
-
documentation themes :dancer:
Difficulty 2/5 1-3 hours Newbie friendliness 70/100
-
scales :snake:
Difficulty 2/5 1-3 hours Newbie friendliness 65/100
All issues in tidyverse/ggplot2
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
r-lib/pkgdepends#485 · 3 comments ·
-
Difficulty 1/5 Under an hour Newbie friendliness 92/100
-
beginners blocker
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
-
enviPathR OpenBuild Error Build OK Build Warning policies-accepted pre-review precheck-passed
Difficulty 1/5 Under an hour Newbie friendliness 84/100
Bioconductor/BiocContributions#207 · 6 comments ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 74/100
datacarpentry/semester-biology#1255 ·