teunbrand / ggh4x

ggplot extension: options for tailored facets, multiple colourscales and miscellaneous

Home Page:https://teunbrand.github.io/ggh4x/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Facet size = "variable" not working?

Ari04T opened this issue · comments

commented

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

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