Skip to content
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

Facet size = "variable" not working? #143

Closed
Ari04T opened this issue Jan 20, 2024 · 2 comments
Closed

Facet size = "variable" not working? #143

Ari04T opened this issue Jan 20, 2024 · 2 comments
Labels
bug Something isn't working

Comments

@Ari04T
Copy link

Ari04T commented Jan 20, 2024

Hello!

I tried to use the code provided on Facets to get some variable facet size but it doesn't seem to be working. I assume this may have something to do with the latest version of ggplot? Or am I doing something wrong? I'm currently working with latest ggh4x (0.2.7.9000) and ggplot2 (3.4.4.9000).

ggplot(df, aes(x, y)) +
    geom_point() +
    theme(strip.text.y.left = element_text(angle = 0),
          strip.placement = "outside",
          plot.title.position = "plot") +
    facet_grid2(long + short ~ ., switch = "y",
                strip = strip_vanilla(size = "variable")) +
    ggtitle('size = "variable"')

image

@teunbrand
Copy link
Owner

Hi there, thanks for the report. I can indeed reproduce the issue.

@teunbrand teunbrand added the bug Something isn't working label Jan 22, 2024
@teunbrand
Copy link
Owner

Fixed by cfbf4dc

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants