Skip to content

Fix a bug about strip.placement in facet_wrap() #3049

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Feb 18, 2019

Conversation

yutannihilation
Copy link
Member

Fix #3045

When theme$strip.placement is NULL, it should be treated as "inside". It might be better if that default value is set when theme is created, but I just want to fix the apparent inconsistency for now.

library(ggplot2)

ggplot(mtcars, aes(disp, mpg)) +
  geom_point() +
  facet_wrap(~cyl, ncol = 2L, strip.position = "bottom") +
  theme_void()

Created on 2018-12-27 by the reprex package (v0.2.1)

@yutannihilation
Copy link
Member Author

@clauswilke Could you review this when you have a chance? I expect #2784 will fix this kind of problems fundamentally, so I'm not fully sure we need this particular fix or not. If you think this is not necessary, I'll close this.

@clauswilke
Copy link
Member

Could you ask @thomasp85 for a review? I am currently traveling, and I don't know this code very well.

@yutannihilation
Copy link
Member Author

@clauswilke Oh, sorry. Sure. Have a nice trip.

@yutannihilation yutannihilation requested review from thomasp85 and removed request for clauswilke February 14, 2019 02:52
Copy link
Member

@thomasp85 thomasp85 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@yutannihilation yutannihilation merged commit 7bafc45 into tidyverse:master Feb 18, 2019
@yutannihilation yutannihilation deleted the fix-issue3045 branch February 18, 2019 09:49
@yutannihilation
Copy link
Member Author

Thanks!

@lock
Copy link

lock bot commented Aug 17, 2019

This old issue has been automatically locked. If you believe you have found a related problem, please file a new issue (with reprex) and link to this issue. https://reprex.tidyverse.org/

@lock lock bot locked and limited conversation to collaborators Aug 17, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Error from facet_wrap(strip.position = "bottom") + theme_void()
3 participants